UNPKG

@opentelemetry/instrumentation-grpc

Version:
57 lines 3.05 kB
/** * Deprecated, use `server.address` on client spans and `client.address` on server spans. * * @example example.com * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `server.address` on client spans and `client.address` on server spans. */ export declare const ATTR_NET_PEER_NAME: "net.peer.name"; /** * Deprecated, use `server.port` on client spans and `client.port` on server spans. * * @example 8080 * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. * * @deprecated Replaced by `server.port` on client spans and `client.port` on server spans. */ export declare const ATTR_NET_PEER_PORT: "net.peer.port"; /** * The name of the (logical) method being called, must be equal to the $method part in the span name. * * @example "exampleMethod" * * @note This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function.name` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side). * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export declare const ATTR_RPC_METHOD: "rpc.method"; /** * The full (logical) name of the service being called, including its package name, if applicable. * * @example "myservice.EchoService" * * @note This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side). * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export declare const ATTR_RPC_SERVICE: "rpc.service"; /** * A string identifying the remoting system. See below for a list of well-known identifiers. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export declare const ATTR_RPC_SYSTEM: "rpc.system"; /** * The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request. * * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. */ export declare const ATTR_RPC_GRPC_STATUS_CODE: "rpc.grpc.status_code"; /** * Enum value 0 for attribute {@link ATTR_RPC_GRPC_STATUS_CODE}. */ export declare const RPC_GRPC_STATUS_CODE_VALUE_OK: 0; //# sourceMappingURL=semconv.d.ts.map