-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
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
Feature: Added Support accepting OTLP via Kafka #4299
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add tests for all code changes
plugin/storage/kafka/unmarshaller.go
Outdated
newSpan := &model.Span{} | ||
spans := []*model.Span{newSpan} | ||
err := proto.Unmarshal(msg, newSpan) | ||
return newSpan, err | ||
|
||
return spans, err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newSpan := &model.Span{}
err := proto.Unmarshal(msg, newSpan)
return []*model.Span{newSpan}, err
plugin/storage/kafka/options.go
Outdated
@@ -34,6 +34,10 @@ const ( | |||
EncodingProto = "protobuf" | |||
// EncodingZipkinThrift is used for spans encoded as Zipkin Thrift. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// EncodingZipkinThrift is used for spans encoded as Zipkin Thrift. | |
// EncodingZipkinThrift is used for spans encoded as Zipkin Thrift array. |
plugin/storage/kafka/options.go
Outdated
// EncodingOtlpJSON is used for spans encoded as OTLP JSON. | ||
EncodingOtlpJSON = "otlp-json" | ||
// EncodingOtlpProto is used for spans encoded as OTLP Proto. | ||
EncodingOtlpProto = "otlp-proto" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add to description of encoding flag
plugin/storage/kafka/options.go
Outdated
@@ -34,6 +34,10 @@ const ( | |||
EncodingProto = "protobuf" | |||
// EncodingZipkinThrift is used for spans encoded as Zipkin Thrift. | |||
EncodingZipkinThrift = "zipkin-thrift" | |||
// EncodingOtlpJSON is used for spans encoded as OTLP JSON. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clarify which Protobuf type is expected in the Kafka message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you tell me about Protobuf type?
Is it mean Protobuf Encoding type?
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md#binary-protobuf-encoding
@yurishkuro |
please resolve merge conflicts |
Sorry,,,, A new PR has been created because a PR with no commits cannot be reopened. |
Which problem is this PR solving?
Short description of the changes