@opentelemetry/exporter-trace-otlp-grpc
Advanced tools
Comparing version 0.49.1 to 0.50.0
import { ReadableSpan, SpanExporter } from '@opentelemetry/sdk-trace-base'; | ||
import { OTLPGRPCExporterConfigNode, OTLPGRPCExporterNodeBase, ServiceClientType } from '@opentelemetry/otlp-grpc-exporter-base'; | ||
import { IExportTraceServiceRequest } from '@opentelemetry/otlp-transformer'; | ||
import { OTLPGRPCExporterConfigNode, OTLPGRPCExporterNodeBase } from '@opentelemetry/otlp-grpc-exporter-base'; | ||
import { IExportTraceServiceRequest, IExportTraceServiceResponse } from '@opentelemetry/otlp-transformer'; | ||
/** | ||
* OTLP Trace Exporter for Node | ||
*/ | ||
export declare class OTLPTraceExporter extends OTLPGRPCExporterNodeBase<ReadableSpan, IExportTraceServiceRequest> implements SpanExporter { | ||
export declare class OTLPTraceExporter extends OTLPGRPCExporterNodeBase<ReadableSpan, IExportTraceServiceRequest, IExportTraceServiceResponse> implements SpanExporter { | ||
constructor(config?: OTLPGRPCExporterConfigNode); | ||
convert(spans: ReadableSpan[]): IExportTraceServiceRequest; | ||
getDefaultUrl(config: OTLPGRPCExporterConfigNode): string; | ||
getServiceClientType(): ServiceClientType; | ||
getServiceProtoPath(): string; | ||
getUrlFromConfig(config: OTLPGRPCExporterConfigNode): string; | ||
} | ||
//# sourceMappingURL=OTLPTraceExporter.d.ts.map |
@@ -20,3 +20,2 @@ "use strict"; | ||
const core_1 = require("@opentelemetry/core"); | ||
const grpc_js_1 = require("@grpc/grpc-js"); | ||
const otlp_grpc_exporter_base_1 = require("@opentelemetry/otlp-grpc-exporter-base"); | ||
@@ -33,8 +32,4 @@ const otlp_transformer_1 = require("@opentelemetry/otlp-transformer"); | ||
constructor(config = {}) { | ||
super(config); | ||
const headers = Object.assign(Object.assign({}, USER_AGENT), core_1.baggageUtils.parseKeyPairsIntoRecord((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS)); | ||
this.metadata || (this.metadata = new grpc_js_1.Metadata()); | ||
for (const [k, v] of Object.entries(headers)) { | ||
this.metadata.set(k, v); | ||
} | ||
const signalSpecificMetadata = Object.assign(Object.assign({}, USER_AGENT), core_1.baggageUtils.parseKeyPairsIntoRecord((0, core_1.getEnv)().OTEL_EXPORTER_OTLP_TRACES_HEADERS)); | ||
super(config, signalSpecificMetadata, 'TraceExportService', '/opentelemetry.proto.collector.trace.v1.TraceService/Export', otlp_grpc_exporter_base_1.TraceSerializer); | ||
} | ||
@@ -47,8 +42,2 @@ convert(spans) { | ||
} | ||
getServiceClientType() { | ||
return otlp_grpc_exporter_base_1.ServiceClientType.SPANS; | ||
} | ||
getServiceProtoPath() { | ||
return 'opentelemetry/proto/collector/trace/v1/trace_service.proto'; | ||
} | ||
getUrlFromConfig(config) { | ||
@@ -55,0 +44,0 @@ if (typeof config.url === 'string') { |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.49.1"; | ||
export declare const VERSION = "0.50.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.49.1'; | ||
exports.VERSION = '0.50.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/exporter-trace-otlp-grpc", | ||
"version": "0.49.1", | ||
"version": "0.50.0", | ||
"description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector", | ||
@@ -52,3 +52,3 @@ "main": "build/src/index.js", | ||
"@opentelemetry/api": "1.8.0", | ||
"@opentelemetry/otlp-exporter-base": "0.49.1", | ||
"@opentelemetry/otlp-exporter-base": "0.50.0", | ||
"@types/mocha": "10.0.6", | ||
@@ -73,11 +73,11 @@ "@types/node": "18.6.5", | ||
"@grpc/grpc-js": "^1.7.1", | ||
"@opentelemetry/core": "1.22.0", | ||
"@opentelemetry/otlp-grpc-exporter-base": "0.49.1", | ||
"@opentelemetry/otlp-transformer": "0.49.1", | ||
"@opentelemetry/resources": "1.22.0", | ||
"@opentelemetry/sdk-trace-base": "1.22.0" | ||
"@opentelemetry/core": "1.23.0", | ||
"@opentelemetry/otlp-grpc-exporter-base": "0.50.0", | ||
"@opentelemetry/otlp-transformer": "0.50.0", | ||
"@opentelemetry/resources": "1.23.0", | ||
"@opentelemetry/sdk-trace-base": "1.23.0" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/exporter-trace-otlp-grpc", | ||
"sideEffects": false, | ||
"gitHead": "3920b158d08daa776280bde68a79e44bafa4e8ea" | ||
"gitHead": "5231aa255047fbc6ee3d6a299f4423ab2f8a5fbc" | ||
} |
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
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
34820
111
1
+ Added@opentelemetry/api-logs@0.50.0(transitive)
+ Added@opentelemetry/core@1.23.0(transitive)
+ Added@opentelemetry/otlp-exporter-base@0.50.0(transitive)
+ Added@opentelemetry/otlp-grpc-exporter-base@0.50.0(transitive)
+ Added@opentelemetry/otlp-transformer@0.50.0(transitive)
+ Added@opentelemetry/resources@1.23.0(transitive)
+ Added@opentelemetry/sdk-logs@0.50.0(transitive)
+ Added@opentelemetry/sdk-metrics@1.23.0(transitive)
+ Added@opentelemetry/sdk-trace-base@1.23.0(transitive)
+ Added@opentelemetry/semantic-conventions@1.23.0(transitive)
- Removed@opentelemetry/api-logs@0.49.1(transitive)
- Removed@opentelemetry/core@1.22.0(transitive)
- Removed@opentelemetry/otlp-exporter-base@0.49.1(transitive)
- Removed@opentelemetry/otlp-grpc-exporter-base@0.49.1(transitive)
- Removed@opentelemetry/otlp-transformer@0.49.1(transitive)
- Removed@opentelemetry/resources@1.22.0(transitive)
- Removed@opentelemetry/sdk-logs@0.49.1(transitive)
- Removed@opentelemetry/sdk-metrics@1.22.0(transitive)
- Removed@opentelemetry/sdk-trace-base@1.22.0(transitive)
- Removed@opentelemetry/semantic-conventions@1.22.0(transitive)
Updated@opentelemetry/core@1.23.0