-
Notifications
You must be signed in to change notification settings - Fork 69
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
fix(trace): show status of span in trace pannel #950
fix(trace): show status of span in trace pannel #950
Conversation
2d10f2d
to
f0dc99b
Compare
Hey thanks for the contribution! Can you find a source where this value comes from: Also what does |
I don't think that its written in some doc or spec. However its how its defined inside the otel collector. |
Appreciate the links to the trace panel, the I see the first otel link you sent has some constants, but even the I just want to make sure we have a source for this string that we can track in the future: if("StatusCode" = 'STATUS_CODE_ERROR', 2, 0) as statusCode |
I think I found what you were looking for @SpencerTorres |
I found the real source here: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/04b3b9898b242c0b3b707bc043c025eb9f6f73ba/internal/coreinternal/traceutil/traceutil.go#L37-L47 This is what is used in the ClickHouse exporter. I'm not sure whether I like this being a String, or if it should be changed to store the integer value. It's Edit: After reading the PR linked in the source, it seems like our plugin is using the OLD behavior. We really should be storing We should consider both values in the condition check for this PR so that when its changed over there, it will support both. I'm not sure I want to put all of this in the SQL though. If we need to, we can modify this value either on the backend or in the frontend as a postprocessor for the data frame. Let me know if you have any opinions on all of this. I will review this PR as is for now. |
I have submitted a PR to upgrade these statuses to match the specification: open-telemetry/opentelemetry-collector-contrib#34799 It would be nice if the Grafana code would match on this too, but that's for another PR: https://github.com/grafana/grafana/blob/d3c6e2b203f87d210cdbf346198d960ac00e72ff/public/app/features/explore/TraceView/components/TraceTimelineViewer/utils.tsx#L73 |
The PR has been merged today, going forward we should match on |
I have now replaced On another note @SpencerTorres do you by any chance have experience with using hosted Clickhouse and their autoscaler? Having the issue that their autoscaler really does not like the otel workload and wants to scaleup no matter what. |
Hmm latest backend tests failed with
|
Appreciate the changes! Will review now.
Are you talking about ClickHouse Cloud? We have an excellent support team who will be able to look into those scaling issues. You should be able to open a ticket in our console. Also, the backend tests failing is a known issue, I think @bossinc will be able to workaround that if we need to merge. |
CI issue should be fixed now, please rebase the branch from |
1efe263
to
3edd252
Compare
Yes @SpencerTorres I'm indeed talking about Clickhouse cloud and have opend a support request, however they are not able to help in regards to the OTel workload. As it is now, regardless of what node size I pick it will scale up, even if there is currently no load issue in regards to ingesting traces and etc. Was just wondering if you had experience with the cloud offering with Otel workload. Kind reards |
I would recommend continuing this discussion with the support team in that request, they will have better answers than I do in regards to scaling. I sent them this thread internally so they have more context. If you have any issues they will absolutely be able to sort it out |
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.
Overall looks good and is a great feature addition. Added a few notes.
Thanks for the contribution!
Would using |
I would prefer a single condition, but this option does offer the best compatibility. Yes, let's do it this way for now |
@SpencerTorres I have now added the backwards compatible if statement. |
It looks like this was added in the README but not the actual sqlgen code |
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.
Awesome, the code looks good now. Let's add a line to the CHANGELOG
and then we can merge.
Appreciate your patience and contribution 🚀
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.
Thank you @Defman!
This pr fixes missing status code from spans in the trace panel.