Skip to content
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

zipkinv2: add encoders, decoders, marshalers #3426

Merged
merged 5 commits into from
Jun 15, 2021

Conversation

jrcamp
Copy link
Contributor

@jrcamp jrcamp commented Jun 11, 2021

Also update zipkin receiver to use them.

Also update zipkin receiver to use them.
@jrcamp jrcamp force-pushed the zipkinv2-encoders branch from a286caf to 992993d Compare June 11, 2021 22:28
@jrcamp jrcamp marked this pull request as ready for review June 11, 2021 22:49
@jrcamp jrcamp requested review from a team and dmitryax June 11, 2021 22:49
receiver/kafkareceiver/zipkin_unmarshaler.go Outdated Show resolved Hide resolved
receiver/kafkareceiver/zipkin_unmarshaler_test.go Outdated Show resolved Hide resolved
receiver/kafkareceiver/zipkin_unmarshaler_test.go Outdated Show resolved Hide resolved
return pdata.Traces{}, err
if hdr.Get("Content-Type") == "application/x-protobuf" {
// TODO: (@odeke-em) record the unique types of Content-Type uploads
if debugWasSet {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please investigate the reason why this was added and maybe consider to remove it if no longer useful.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zipkin uses debug=true to indicate that sampling decisions is overriden but I'm not sure why it is recorded as a part of the span. I assume, it allows developers to query traces initiated for debugging purposes. It's a part of their span model.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bogdandrutu does this resolve it?

Copy link
Member

@bogdandrutu bogdandrutu Jun 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is for in process/on the wire (on the main request path) propagation as far as I know, not for collection. This is where it is unclear to me

@tigrannajaryan
Copy link
Member

Please resolve conflicts.

@tigrannajaryan
Copy link
Member

Please resolve the conflicts.

type protobufDecoder struct {
// DebugWasSet toggles the Debug field of each Span. It is usually set to true if
// the "X-B3-Flags" header is set to 1 on the request.
DebugWasSet bool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, very cryptic name but I agree that we should use what zipkin is using.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also why public in a private structure?

return pdata.Traces{}, err
if hdr.Get("Content-Type") == "application/x-protobuf" {
// TODO: (@odeke-em) record the unique types of Content-Type uploads
if debugWasSet {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zipkin uses debug=true to indicate that sampling decisions is overriden but I'm not sure why it is recorded as a part of the span. I assume, it allows developers to query traces initiated for debugging purposes. It's a part of their span model.

@jrcamp
Copy link
Contributor Author

jrcamp commented Jun 14, 2021

@bogdandrutu updated, lint failure looks unrelated

@alolita alolita requested a review from a team June 15, 2021 07:21
@bogdandrutu bogdandrutu merged commit e10e703 into open-telemetry:main Jun 15, 2021
@jrcamp jrcamp deleted the zipkinv2-encoders branch June 15, 2021 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants