Skip to content

Commit

Permalink
chore(instrumentation-bunyan): use strings exported for attributes (#…
Browse files Browse the repository at this point in the history
…2195)

Refs: #2025
Signed-off-by: maryliag <[email protected]>
  • Loading branch information
maryliag authored May 14, 2024
1 parent 416337e commit bb5d3bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@opentelemetry/sdk-logs": "^0.51.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@opentelemetry/sdk-trace-node": "^1.8.0",
"@opentelemetry/semantic-conventions": "^1.0.0",
"@opentelemetry/semantic-conventions": "^1.23.0",
"@types/mocha": "7.0.2",
"@types/node": "18.6.5",
"@types/sinon": "10.0.18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
import { isWrapped } from '@opentelemetry/instrumentation';
import { Resource } from '@opentelemetry/resources';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
import * as assert from 'assert';
import * as sinon from 'sinon';
import { Writable } from 'stream';
Expand All @@ -48,7 +48,7 @@ tracerProvider.addSpanProcessor(
const tracer = tracerProvider.getTracer('default');

const resource = new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: 'test-instrumentation-bunyan',
[SEMRESATTRS_SERVICE_NAME]: 'test-instrumentation-bunyan',
});
const loggerProvider = new LoggerProvider({ resource });
const memExporter = new InMemoryLogRecordExporter();
Expand Down

0 comments on commit bb5d3bb

Please sign in to comment.