We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to write log record to a file in JSON format, is there any way to do it?
I saw in #5172 (comment) that this feature has been postponed.
Export this method: func (e *Exporter) newRecordJSON(r sdklog.Record) recordJSON
func (e *Exporter) newRecordJSON(r sdklog.Record) recordJSON
The text was updated successfully, but these errors were encountered:
This is not a stable JSON representation. See https://pkg.go.dev/go.opentelemetry.io/otel/exporters/stdout/stdoutlog#pkg-overview:
it does not provide an interchange format for OpenTelemetry that is supported with any stability or compatibility guarantees
However, it is possible we could provide such functionality as part of otlplogfile package. Reference:
otlplogfile
Sorry, something went wrong.
No branches or pull requests
Problem Statement
I want to write log record to a file in JSON format, is there any way to do it?
I saw in #5172 (comment) that this feature has been postponed.
Proposed Solution
Export this method:
func (e *Exporter) newRecordJSON(r sdklog.Record) recordJSON
The text was updated successfully, but these errors were encountered: