From 73de2429664c5e83f7bcca5d7f9962268334166b Mon Sep 17 00:00:00 2001 From: cindy-peng Date: Tue, 16 Apr 2024 11:41:38 -0700 Subject: [PATCH] fix lint issues --- package.json | 4 +++- src/utils/context.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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';