opentelemetry-specification icon indicating copy to clipboard operation
opentelemetry-specification copied to clipboard

Logs: Instrumentation Scope for logs not from LoggerProvider provided Logger

Open tsloughter opened this issue 2 years ago • 0 comments

What are you trying to achieve?

Implementing the Logs SDK and need to export logs emitted by the language's structured logger.

Additional context.

Since exporting logs through OTLP requires a Scope which the log records are under and not all logs emitted by a program will be within an Instrumentation Scope, how is exporting these logs to be done?

In my case I have planned to use the library name and version the log comes from to create a Scope, but there are times (such as a log generated in the REPL) that no such information is available and I assume others are in a similar situation.

Is using information like library name/version to create a Scope a strategy that should be suggested in the spec?

And where no such information is available should an empty string name and version be used for a Scope?

tsloughter avatar Sep 23 '22 22:09 tsloughter