Skip to content

Commit 6337e35

Browse files
REVERT LATER
Move to console exporter to make it easier to test
1 parent 4488511 commit 6337e35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gateway-js/src/utilities/opentelemetry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Attributes, Exception, Span } from '@opentelemetry/api';
22
import opentelemetry from '@opentelemetry/api';
33
import type { GatewayGraphQLRequestContext } from '@apollo/server-gateway-interface';
44
import { OperationContext } from '../operationContext';
5-
import { OTLPMetricExporter } from '@opentelemetry/exporter-metrics-otlp-http';
5+
import { ConsoleMetricExporter } from '@opentelemetry/sdk-metrics'
66
import {
77
MeterProvider,
88
PeriodicExportingMetricReader,
@@ -145,7 +145,7 @@ export function configureOpenTelemetry(): MeterProvider {
145145
detectors: [alibabaCloudEcsDetector, awsEc2Detector, awsBeanstalkDetector, awsEcsDetector, awsEksDetector, awsLambdaDetector, gcpDetector, azureVmDetector, azureFunctionsDetector, azureAppServiceDetector],
146146
})
147147

148-
const metricExporter = new OTLPMetricExporter();
148+
const metricExporter = new ConsoleMetricExporter();
149149
return new MeterProvider({
150150
resource: resource.merge(
151151
new Resource ({

0 commit comments

Comments
 (0)