Skip to content

Commit

Permalink
chore: use api-metrics for MeterProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud committed Jan 30, 2021
1 parent 0e3a42e commit 9f93693
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/opentelemetry-instrumentation-grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
},
"dependencies": {
"@opentelemetry/api": "^0.15.0",
"@opentelemetry/api-metrics": "^0.15.0",
"@opentelemetry/instrumentation": "^0.15.0",
"@opentelemetry/semantic-conventions": "^0.15.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { VERSION } from './version';
import { GrpcNativeInstrumentation } from './grpc';
import { GrpcJsInstrumentation } from './grpc-js';
import * as api from '@opentelemetry/api';
import { MeterProvider } from '@opentelemetry/api-metrics';

/** The metadata key under which span context is stored as a binary value. */
export const GRPC_TRACE_KEY = 'grpc-trace-bin';
Expand Down Expand Up @@ -83,7 +84,7 @@ export class GrpcInstrumentation {
* Sets MeterProvider to this plugin
* @param meterProvider
*/
public setMeterProvider(meterProvider: api.MeterProvider) {
public setMeterProvider(meterProvider: MeterProvider) {
this._grpcJsInstrumentation.setMeterProvider(meterProvider);
this._grpcNativeInstrumentation.setMeterProvider(meterProvider);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/opentelemetry-instrumentation-grpc/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
{
"path": "../opentelemetry-api"
},
{
"path": "../opentelemetry-api-metrics"
},
{
"path": "../opentelemetry-context-async-hooks"
},
Expand Down

0 comments on commit 9f93693

Please sign in to comment.