Skip to content

Commit 957fa3b

Browse files
refactor(examples/esm-http-ts): use new exported string constants for semconv (#4758)
* refactor(examples/ems-http-ts): use new exported string constants for semconv * added changelog entry * Update CHANGELOG.md --------- Co-authored-by: Marc Pichler <[email protected]>
1 parent 97d0ec5 commit 957fa3b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/
2626

2727
### :books: (Refine Doc)
2828

29+
* refactor(examples): use new exported string constants for semconv in examples/esm-http-ts [#4758](https://github.com/open-telemetry/opentelemetry-js/pull/4758) @Zen-cronic
2930
* refactor(examples): use new exported string constants for semconv in examples/basic-tracer-node [#4759](https://github.com/open-telemetry/opentelemetry-js/pull/4759#pull) @Zen-cronic
3031
* refactor(examples): use new exported string constants for semconv in examples/http [#4750](https://github.com/open-telemetry/opentelemetry-js/pull/4750) @Zen-cronic
3132
* refactor(examples): use new exported string constants for semconv in examples/grpc-js [#4760](https://github.com/open-telemetry/opentelemetry-js/pull/4760#pull) @Zen-cronic

examples/esm-http-ts/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import {
77
SimpleSpanProcessor,
88
} from '@opentelemetry/sdk-trace-base';
99
import { Resource } from '@opentelemetry/resources';
10-
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
10+
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
1111
import http from 'http';
1212

1313
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.DEBUG);
1414
const tracerProvider = new NodeTracerProvider({
1515
resource: new Resource({
16-
[SemanticResourceAttributes.SERVICE_NAME]: 'esm-http-ts-example',
16+
[SEMRESATTRS_SERVICE_NAME]: 'esm-http-ts-example',
1717
}),
1818
});
1919
const exporter = new ConsoleSpanExporter();

0 commit comments

Comments
 (0)