File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,19 @@ import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'
2
2
import { Resource } from '@opentelemetry/resources'
3
3
import { NodeSDK } from '@opentelemetry/sdk-node'
4
4
import { SimpleSpanProcessor } from '@opentelemetry/sdk-trace-node'
5
- import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions'
5
+ import {
6
+ SEMRESATTRS_SERVICE_NAME ,
7
+ SEMRESATTRS_SERVICE_VERSION ,
8
+ } from '@opentelemetry/semantic-conventions'
6
9
7
10
const {
8
11
default : { version, name } ,
9
12
} = await import ( '../../../package.json' )
10
13
11
14
const sdk = new NodeSDK ( {
12
15
resource : new Resource ( {
13
- [ SemanticResourceAttributes . SERVICE_NAME ] : name ,
14
- [ SemanticResourceAttributes . SERVICE_VERSION ] : version ,
16
+ [ SEMRESATTRS_SERVICE_NAME ] : name ,
17
+ [ SEMRESATTRS_SERVICE_VERSION ] : version ,
15
18
} ) ,
16
19
spanProcessor : new SimpleSpanProcessor (
17
20
new OTLPTraceExporter ( {
You can’t perform that action at this time.
0 commit comments