Define a specification for the OpenTelemetry Logging API and SDK #1258
Labels
release:after-ga
Not required before GA release, and not going to work on before GA
spec:logs
Related to the specification/logs directory
What are you trying to achieve?
Currently there is no logging specification for the API and SDK, similar to specification of the traces API and traces SDK. This means that a large component of the logging functionality is being based off what is specified for traces, which can introduce problems for logs.
What did you expect to see?
The logging specification should state the required classes, the methods present for each class, and lay out the logic of the sampler. It should include the classes and the methods of LoggerProvider, Logger, Log Processor and Log Exporter interface. There could be a duplication with the implementation logic between with the Logs and Traces specification, such as LoggerProvider having the duplicate logic to the TracerProvider, the LogProcessor having similar logic to the SpanProcessor and Log Exporter having similar logic to the SpanExporter, for both the API and SDK.
Having a well-defined logging specification will allow future additions to the logging API and SDK have a place to reside. Having these documents would help language libraries provide a consistent implementation of logging that satisfies the OpenTelemetry requirements.
Additional context (Add any other context about the problem here. If you followed an existing documentation, please share the link to it.)
Currently, the main sources of reference in the specification for logs is limited to a logging overview and Log Data Model definition.
cc: @xukaren @MarkSeufert
The text was updated successfully, but these errors were encountered: