Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/instrumentation-grpc

Package Overview
Dependencies
Maintainers
4
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-grpc - npm Package Compare versions

Comparing version 0.16.1-alpha.15 to 0.16.1-alpha.16

build/src/grpc-js/clientUtils.d.ts

2

build/src/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc