Package io.opentelemetry.exporter.otlp
OpenTelemetry exporter which sends span and metric data to OpenTelemetry collector via gRPC.
Contents
CommonAdapterMetricAdapterOtlpGrpcMetricExporterOtlpGrpcSpanExporterResourceAdapterSpanAdapter
Configuration options for OtlpGrpcMetricExporter and
OtlpGrpcSpanExporter can be read from system properties,
environment variables, or Properties objects.
OtlpGrpcMetricExporter
For system properties and Properties objects, OtlpGrpcMetricExporter will look for the following names:
otel.exporter.otlp.metric.timeout: to set the max waiting time allowed to send each metric batch.otel.exporter.otlp.metric.endpoint: to set the endpoint to connect to.otel.exporter.otlp.metric.insecure: whether to enable client transport security for the connection.otel.exporter.otlp.metric.headers: the headers associated with the requests.
For environment variables, OtlpGrpcMetricExporter will
look for the following names:
OTEL_EXPORTER_OTLP_METRIC_TIMEOUT: to set the max waiting time allowed to send each * span batch. *OTEL_EXPORTER_OTLP_METRIC_ENDPOINT: to set the endpoint to connect to. *OTEL_EXPORTER_OTLP_METRIC_INSECURE: whether to enable client transport security for * the connection. *OTEL_EXPORTER_OTLP_METRIC_HEADERS: the headers associated with the requests. *
OtlpGrpcSpanExporter
For system properties and Properties objects, OtlpGrpcSpanExporter will look for the following names:
otel.exporter.otlp.span.timeout: to set the max waiting time allowed to send each span batch.otel.exporter.otlp.span.endpoint: to set the endpoint to connect to.otel.exporter.otlp.span.insecure: whether to enable client transport security for the connection.otel.exporter.otlp.span.headers: the headers associated with the requests.
For environment variables, OtlpGrpcSpanExporter will
look for the following names:
OTEL_EXPORTER_OTLP_SPAN_TIMEOUT: to set the max waiting time allowed to send each span batch.OTEL_EXPORTER_OTLP_SPAN_ENDPOINT: to set the endpoint to connect to.OTEL_EXPORTER_OTLP_SPAN_INSECURE: whether to enable client transport security for the connection.OTEL_EXPORTER_OTLP_SPAN_HEADERS: the headers associated with the requests.
-
Class Summary Class Description CommonProperties OtlpGrpcMetricExporter Exports metrics using OTLP via gRPC, using OpenTelemetry's protobuf model.OtlpGrpcMetricExporter.Builder Builder utility for this exporter.OtlpGrpcSpanExporter Exports spans using OTLP via gRPC, using OpenTelemetry's protobuf model.OtlpGrpcSpanExporter.Builder Builder utility for this exporter.