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

Jaeger translation of span status to pdata incorrectly parsed as integer #6675

Closed
MrAlias opened this issue Dec 9, 2021 · 1 comment · Fixed by #6682
Closed

Jaeger translation of span status to pdata incorrectly parsed as integer #6675

MrAlias opened this issue Dec 9, 2021 · 1 comment · Fixed by #6682
Assignees
Labels
bug Something isn't working comp:jaeger Jaeger related issues

Comments

@MrAlias
Copy link
Contributor

MrAlias commented Dec 9, 2021

Description

The jaegerthrift receiver parses the otel.status_code tag as an integer.

i, err := strconv.Atoi(attrVal.StringVal())

The OpenTelemetry specification specifies this tag to be a string of OK or ERROR values.

Currently, this is correctly marking spans as errors because the jaeger span also has the error tag set to indicate the error and a span an appropriately tagged otel.span_status field will fail to parse and not override this status code. However, if, like in the Go implementation, the tag is infact an integer and the integer does not match the pdata definitions of status, it is possible for an error spans to be marked successful.

Proposal

  • Parse OK and ERROR strings and translate to appropriate pdata status.
  • Fallback to parsing otel.status_code only when the error tag is not set. Otherwise there is a chance the first parse of error is overwritten.
@MrAlias MrAlias added the bug Something isn't working label Dec 9, 2021
@MrAlias
Copy link
Contributor Author

MrAlias commented Dec 9, 2021

I'm working on a resolution for this.

@jpkrohling jpkrohling assigned jpkrohling and MrAlias and unassigned jpkrohling Dec 10, 2021
@jpkrohling jpkrohling added the comp:jaeger Jaeger related issues label Dec 10, 2021
povilasv referenced this issue in coralogix/opentelemetry-collector-contrib Dec 19, 2022
…lemented in settings. (#6675)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp:jaeger Jaeger related issues
Projects
None yet
2 participants