diff --git a/package.json b/package.json index 379f2d54..f594c48c 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,9 @@ "webpack-cli": "^5.0.0", "@opentelemetry/sdk-trace-node": "^1.23.0", "@opentelemetry/sdk-node": "^0.50.0", - "@opentelemetry/semantic-conventions": "1.23.0", + "@opentelemetry/semantic-conventions": "^1.23.0", + "@opentelemetry/sdk-trace-base": "^1.23.0", + "@opentelemetry/resources": "^1.23.0", "@google-cloud/opentelemetry-cloud-trace-exporter": "^2.1.0" }, "engines": { diff --git a/src/utils/context.ts b/src/utils/context.ts index 24c13995..ce133cc9 100644 --- a/src/utils/context.ts +++ b/src/utils/context.ts @@ -30,7 +30,7 @@ import * as http from 'http'; import * as uuid from 'uuid'; import * as crypto from 'crypto'; -import { trace, isSpanContextValid } from '@opentelemetry/api'; +import {trace, isSpanContextValid} from '@opentelemetry/api'; /** Header that carries span context across Google infrastructure. */ export const X_CLOUD_TRACE_HEADER = 'x-cloud-trace-context';