Logs: Instrumentation Scope for logs not from LoggerProvider provided Logger #2833
Labels
[label deprecated] triaged-accepted
[label deprecated] Issue triaged and accepted by OTel community, can proceed with creating a PR
spec:logs
Related to the specification/logs directory
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?
The text was updated successfully, but these errors were encountered: