File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 11import { IncomingMessage } from 'node:http' ;
22
33import { DiagConsoleLogger , DiagLogLevel , diag } from '@opentelemetry/api' ;
4- import {
5- BatchSpanProcessor ,
6- SimpleSpanProcessor ,
7- } from '@opentelemetry/sdk-trace-base' ;
4+ import { SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base' ;
85import * as Sentry from '@sentry/node' ;
96
107import { beforeSend } from '@/sentry' ;
@@ -61,15 +58,6 @@ export async function setupInstrumentation() {
6158 ] ,
6259 } ) ;
6360
64- if ( process . env . K_SERVICE ) {
65- const { TraceExporter } = await import (
66- '@google-cloud/opentelemetry-cloud-trace-exporter'
67- ) ;
68- sentryClient ?. traceProvider ?. addSpanProcessor (
69- new BatchSpanProcessor ( new TraceExporter ( { } ) ) ,
70- ) ;
71- }
72-
7361 if ( process . env . NODE_ENV === 'development' ) {
7462 const { OTLPTraceExporter } = await import (
7563 '@opentelemetry/exporter-trace-otlp-proto'
You can’t perform that action at this time.
0 commit comments