Replies: 1 comment 4 replies
-
I guess for doing JSON serialization you should use https://pkg.go.dev/google.golang.org/protobuf/encoding/protojson You can also look at https://github.com/open-telemetry/opentelemetry-collector/blob/main/pdata/ptrace/internal/ptracejson/json.go I think it is also worth to mention the specification: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md#json-protobuf-encoding |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
As per discussions on slack with @Aneurysm9 , having JSON support for exporter in addition to protobuff is welcome.
I came up with this rough draft before actually working on code.
@Aneurysm9 Would appreciate your thoughts on this, is this the right direction?
Requirements
Proposed Interface
Implementation Details
Unknowns
json:"name=resource_spans"
json:"name=resourceSpans"
)(in the
ExportTraceServiceRequest
structBeta Was this translation helpful? Give feedback.
All reactions