-
Notifications
You must be signed in to change notification settings - Fork 513
Closed
Description
The goal:
- Prototype the logging API that can be used by both the SDK consumer and SDK author.
- If we could find an existing C++ logging API that is widely adopted + cross platform, we would want to leverage it instead of reinventing wheels.
- Implement the Processor and Exporter logic similar like SpanProcessor and trace exporter.
- Implement ElasticSearch Log Exporter which sends batches of logs from the SDK directly to ElasticSearch via HTTP REST API.
The stretch goal:
- Provide a console log exporter for local debugging purpose.
- Provide a way to associate trace id / span id and other context/baggage to log entries.
- Implement OTLP Exporter https://github.com/open-telemetry/opentelemetry-proto/tree/master/opentelemetry/proto/logs/v1.
Non-goal:
- Provide log sampler interface and implementation.
- Implement Fluentd/Fluentbit exporter.
- Implement local file exporter.
Initial list of work items:
- API to fetch Logger (e.g. LoggerProvider)
- Logging API
- Log Processor interface
- Log Exporter interface
- SimpleExportProcessor similar like this https://github.com/open-telemetry/opentelemetry-cpp/blob/2973baaf476a92e9d11d55e82f1dad78fefe6de1/sdk/include/opentelemetry/sdk/trace/simple_processor.h.
- BatchExportProcessor similar like this https://github.com/open-telemetry/opentelemetry-cpp/blob/master/sdk/src/trace/batch_span_processor.cc.
- Console Exporter
- ElasticSearch Exporter