File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ const useOnFetchTracer = (): GatewayPlugin => {
29
29
} ;
30
30
} ;
31
31
32
- //*
33
32
if ( process . env [ 'DISABLE_OPENTELEMETRY_SETUP' ] !== '1' ) {
34
33
const { OTLPTraceExporter } =
35
34
process . env [ 'OTLP_EXPORTER_TYPE' ] === 'http'
@@ -75,31 +74,6 @@ if (process.env['DISABLE_OPENTELEMETRY_SETUP'] !== '1') {
75
74
} ) ;
76
75
}
77
76
}
78
- /*/
79
-
80
- const resource = resources.resourceFromAttributes({
81
- 'custom.resource': 'custom value',
82
- });
83
- const { OTLPTraceExporter } =
84
- process.env['OTLP_EXPORTER_TYPE'] === 'http'
85
- ? await import(`@opentelemetry/exporter-trace-otlp-http`)
86
- : await import(`@opentelemetry/exporter-trace-otlp-grpc`);
87
-
88
- const exporter = new OTLPTraceExporter({
89
- url: process.env['OTLP_EXPORTER_URL'],
90
- });
91
- openTelemetrySetup({
92
- contextManager: new AsyncLocalStorageContextManager(),
93
- resource,
94
- traces: {
95
- processors: [
96
- new HiveTracingSpanProcessor({
97
- processor: new tracing.SimpleSpanProcessor(exporter),
98
- }),
99
- ],
100
- },
101
- });
102
- //*/
103
77
104
78
export const gatewayConfig = defineConfig ( {
105
79
openTelemetry : {
You can’t perform that action at this time.
0 commit comments