@opentelemetry/instrumentation-grpc
Advanced tools
Comparing version 0.16.1-alpha.15 to 0.16.1-alpha.16
@@ -1,2 +0,2 @@ | ||
export * from './grpc'; | ||
export * from './instrumentation'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -28,3 +28,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./grpc"), exports); | ||
__exportStar(require("./instrumentation"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,30 +0,6 @@ | ||
/// <reference types="node" /> | ||
import type * as grpcTypes from 'grpc'; | ||
import * as events from 'events'; | ||
import { InstrumentationConfig } from '@opentelemetry/instrumentation'; | ||
export declare type IgnoreMatcher = string | RegExp | ((str: string) => boolean); | ||
export declare type SendUnaryDataCallback = (error: grpcTypes.ServiceError | null, value?: any, trailer?: grpcTypes.Metadata, flags?: grpcTypes.writeFlags) => void; | ||
export interface GrpcInstrumentationConfig extends InstrumentationConfig { | ||
ignoreGrpcMethods?: IgnoreMatcher[]; | ||
} | ||
interface GrpcStatus { | ||
code: number; | ||
details: string; | ||
metadata: grpcTypes.Metadata; | ||
} | ||
export declare type ServerCall = typeof grpcTypes.ServerUnaryCall | typeof grpcTypes.ServerReadableStream | typeof grpcTypes.ServerWritableStream | typeof grpcTypes.ServerDuplexStream; | ||
export declare type ServerCallWithMeta = ServerCall & { | ||
metadata: grpcTypes.Metadata; | ||
status: GrpcStatus; | ||
request?: unknown; | ||
} & events.EventEmitter; | ||
export declare type GrpcClientFunc = typeof Function & { | ||
path: string; | ||
requestStream: boolean; | ||
responseStream: boolean; | ||
}; | ||
export declare type GrpcInternalClientTypes = { | ||
makeClientConstructor: typeof grpcTypes.makeGenericClientConstructor; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
import { SpanStatusCode, SpanStatus } from '@opentelemetry/api'; | ||
import type * as grpcTypes from 'grpc'; | ||
import type * as grpcJsTypes from '@grpc/grpc-js'; | ||
import { IgnoreMatcher } from './types'; | ||
@@ -9,3 +10,3 @@ export declare const findIndex: <T>(args: T[], fn: (arg: T) => boolean) => number; | ||
*/ | ||
export declare const _grpcStatusCodeToOpenTelemetryStatusCode: (status?: grpcTypes.status | undefined) => SpanStatusCode; | ||
export declare const _grpcStatusCodeToOpenTelemetryStatusCode: (status?: grpcTypes.status | grpcJsTypes.status | undefined) => SpanStatusCode; | ||
export declare const _grpcStatusCodeToSpanStatus: (status: number) => SpanStatus; | ||
@@ -12,0 +13,0 @@ /** |
{ | ||
"name": "@opentelemetry/instrumentation-grpc", | ||
"version": "0.16.1-alpha.15+1d682c2f", | ||
"version": "0.16.1-alpha.16+11d9b193", | ||
"description": "OpenTelemetry grpc automatic instrumentation package.", | ||
@@ -48,5 +48,5 @@ "main": "build/src/index.js", | ||
"@opentelemetry/context-base": "^0.16.0", | ||
"@opentelemetry/core": "^0.16.1-alpha.15+1d682c2f", | ||
"@opentelemetry/node": "^0.16.1-alpha.15+1d682c2f", | ||
"@opentelemetry/tracing": "^0.16.1-alpha.15+1d682c2f", | ||
"@opentelemetry/core": "^0.16.0", | ||
"@opentelemetry/node": "^0.16.0", | ||
"@opentelemetry/tracing": "^0.16.0", | ||
"@types/mocha": "8.2.0", | ||
@@ -71,7 +71,8 @@ "@types/node": "14.14.20", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.16.1-alpha.15+1d682c2f", | ||
"@opentelemetry/instrumentation": "^0.16.1-alpha.15+1d682c2f", | ||
"@opentelemetry/api": "^0.16.0", | ||
"@opentelemetry/api-metrics": "^0.16.0", | ||
"@opentelemetry/instrumentation": "^0.16.0", | ||
"@opentelemetry/semantic-conventions": "^0.16.0" | ||
}, | ||
"gitHead": "1d682c2f75f9d11265cfc1692fa822174594d4b0" | ||
"gitHead": "11d9b193d1e980eec278627377626231f650f2fe" | ||
} |
@@ -8,3 +8,3 @@ # OpenTelemetry gRPC Instrumentation for Node.js | ||
This module provides automatic instrumentation for [`grpc`](https://grpc.github.io/grpc/node/). Currently, version [`1.x`](https://www.npmjs.com/package/grpc?activeTab=versions) of the Node.js gRPC library is supported. | ||
This module provides automatic instrumentation for [`grpc`](https://grpc.github.io/grpc/node/) and [`@grpc/grpc-js`](https://grpc.io/blog/grpc-js-1.0/). Currently, version [`1.x`](https://www.npmjs.com/package/grpc?activeTab=versions) of `grpc` and version [`1.x`](https://www.npmjs.com/package/@grpc/grpc-js?activeTab=versions) of `@grpc/grpc-js` is supported. | ||
@@ -22,3 +22,3 @@ For automatic instrumentation see the | ||
OpenTelemetry gRPC Instrumentation allows the user to automatically collect trace data and export them to the backend of choice, to give observability to distributed systems when working with [gRPC](https://www.npmjs.com/package/grpc). | ||
OpenTelemetry gRPC Instrumentation allows the user to automatically collect trace data and export them to the backend of choice, to give observability to distributed systems when working with [gRPC](https://www.npmjs.com/package/grpc) or ([grpc-js](https://www.npmjs.com/package/@grpc/grpc-js)). | ||
@@ -47,3 +47,3 @@ To load a specific instrumentation (**gRPC** in this case), specify it in the Node Tracer's configuration. | ||
See [examples/grpc](https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/grpc) for a short example. | ||
See [examples/grpc](https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/grpc) or [examples/grpc-js](https://github.com/open-telemetry/opentelemetry-js/tree/main/examples/grpc-js) for examples. | ||
@@ -50,0 +50,0 @@ ### gRPC Instrumentation Options |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
110406
42
1415
4
2
+ Added@opentelemetry/api@0.16.0(transitive)
+ Added@opentelemetry/api-metrics@0.16.0(transitive)
+ Added@opentelemetry/instrumentation@0.16.0(transitive)
- Removed@opentelemetry/api@0.16.1-alpha.20(transitive)
- Removed@opentelemetry/api-metrics@0.16.1-alpha.20(transitive)
- Removed@opentelemetry/instrumentation@0.16.1-alpha.20(transitive)
Updated@opentelemetry/api@^0.16.0