Skip to content

Commit

Permalink
fix metrics import (open-telemetry#721)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Tessier <pierre@pierretessier.com>
  • Loading branch information
puckpuck authored Jan 31, 2023
1 parent 5be7345 commit 2f713b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/frontend/utils/telemetry/Instrumentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumenta
const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-grpc');
const { OTLPMetricExporter } = require('@opentelemetry/exporter-metrics-otlp-grpc');
const { PeriodicExportingMetricReader } = require('@opentelemetry/sdk-metrics');


const { alibabaCloudEcsDetector } = require('@opentelemetry/resource-detector-alibaba-cloud');
const { awsEc2Detector, awsEksDetector } = require('@opentelemetry/resource-detector-aws');
const { containerDetector } = require('@opentelemetry/resource-detector-container');
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/utils/telemetry/InstrumentationMiddleware.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NextApiHandler } from 'next';
import { context, Exception, propagation, Span, SpanKind, SpanStatusCode, trace } from '@opentelemetry/api';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { metrics } from '@opentelemetry/api-metrics';
import { metrics } from '@opentelemetry/api';

const meter = metrics.getMeter('frontend');
const requestCounter = meter.createCounter('app.frontend.requests');
Expand Down

0 comments on commit 2f713b5

Please sign in to comment.