Copyright | (c) Ian Duncan 2021 |
---|---|
License | BSD-3 |
Maintainer | Ian Duncan |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
The OTLP Exporter is the recommend exporter format to use where possible.
A number of vendors offer support for exporting traces, logs, and metrics using the vendor-agnostic OTLP protocol.
Additionally, the OTLP format is supported by the OpenTelemetry Collector.
The OpenTelemetry Collector offers a vendor-agnostic implementation of how to receive, process and export telemetry data. It removes the need to run, operate, and maintain multiple agents/collectors. This works with improved scalability and supports open-source observability data formats (e.g. Jaeger, Prometheus, Fluent Bit, etc.) sending to one or more open-source or commercial back-ends. The local Collector agent is the default location to which instrumentation libraries export their telemetry data.
Synopsis
- otlpExporter :: MonadIO m => OTLPExporterConfig -> m (Exporter ImmutableSpan)
- data OTLPExporterConfig = OTLPExporterConfig {
- otlpEndpoint :: Maybe String
- otlpTracesEndpoint :: Maybe String
- otlpMetricsEndpoint :: Maybe String
- otlpInsecure :: Maybe Bool
- otlpSpanInsecure :: Maybe Bool
- otlpMetricInsecure :: Maybe Bool
- otlpCertificate :: Maybe FilePath
- otlpTracesCertificate :: Maybe FilePath
- otlpMetricCertificate :: Maybe FilePath
- otlpHeaders :: Maybe [Header]
- otlpTracesHeaders :: Maybe [Header]
- otlpMetricsHeaders :: Maybe [Header]
- otlpCompression :: Maybe CompressionFormat
- otlpTracesCompression :: Maybe CompressionFormat
- otlpMetricsCompression :: Maybe CompressionFormat
- otlpTimeout :: Maybe Int
- otlpTracesTimeout :: Maybe Int
- otlpMetricsTimeout :: Maybe Int
- otlpProtocol :: Maybe Protocol
- otlpTracesProtocol :: Maybe Protocol
- otlpMetricsProtocol :: Maybe Protocol
- data CompressionFormat
- data Protocol = HttpProtobuf
- loadExporterEnvironmentVariables :: MonadIO m => m OTLPExporterConfig
- otlpExporterHttpEndpoint :: ByteString
- otlpExporterGRpcEndpoint :: ByteString
Initializing the exporter
otlpExporter :: MonadIO m => OTLPExporterConfig -> m (Exporter ImmutableSpan) Source #
Initial the OTLP Exporter
Configuring the exporter
data OTLPExporterConfig Source #
data CompressionFormat Source #
HttpProtobuf | Note: grpc and http/json will likely be supported eventually, but not yet. |