Class OtlpExporters
java.lang.Object
codes.grow.packages.tempo.tracing.OtlpExporters
OTLP span exporters (gRPC and HTTP/protobuf) configured from a
TracingConfig: endpoint,
headers, compression, export timeout and TLS. The native protocol is not handled here; a
service package provides its own factory for it.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.sdk.trace.export.SpanExportercreate(TracingConfig config) Creates an OTLP exporter for the config's protocol.static SpanExporterFactoryfactory()Returns a factory that creates an OTLP exporter for the config's protocol.static StringhttpEndpoint(TracingConfig config) The HTTP endpoint: the configured URL, with/v1/tracesappended when it has no path.
-
Field Details
-
DEFAULT_GRPC_ENDPOINT
Default OTLP/gRPC endpoint.- See Also:
-
DEFAULT_HTTP_ENDPOINT
Default OTLP/HTTP traces endpoint.- See Also:
-
-
Method Details
-
factory
Returns a factory that creates an OTLP exporter for the config's protocol.- Returns:
- factory
-
create
Creates an OTLP exporter for the config's protocol.- Parameters:
config- tracing config- Returns:
- exporter
- Throws:
ConfigException- for thenativeprotocol or unreadable TLS files
-
httpEndpoint
The HTTP endpoint: the configured URL, with/v1/tracesappended when it has no path.- Parameters:
config- tracing config- Returns:
- endpoint URL
-