-
Notifications
You must be signed in to change notification settings - Fork 259
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] Generate metrics from traces #3453
[Feature] Generate metrics from traces #3453
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.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.15 (9.68 -> 9.52)
- Declining Code Health: 2 findings(s) 🚩
src/Paramore.Brighter/Observability/BrighterMetricsFromTracesProcessor.cs
Show resolved
Hide resolved
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.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.15 (9.68 -> 9.52)
- Declining Code Health: 2 findings(s) 🚩
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.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.15 (9.68 -> 9.53)
- Declining Code Health: 2 findings(s) 🚩
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.
Looks great @jtsalva. I can merge if you want. The CI is a bit broken whilst we fix up the consequences of the Proactor changes across the transports
@@ -0,0 +1,85 @@ | |||
#region Licence | |||
|
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.
If it is a new file, you can add your own name for the copyright in the header. We just need you to sign the CLA so that we have good title to your work.
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.
How do I sign the CLA, is it a file in git somewhere?
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.
Ihttps://cla-assistant.io/BrighterCommand/Brighter?pullRequest=3453
Should work
@@ -115,10 +115,12 @@ public void AddExceptionToSpan(Activity? span, IEnumerable<Exception> exceptions | |||
|
|||
var tags = new ActivityTagsCollection | |||
{ | |||
{ BrighterSemanticConventions.InstrumentationDomain, BrighterSemanticConventions.MessagingInstrumentationDomain }, | |||
{ BrighterSemanticConventions.MessagingOperationType, operation.ToSpanName() }, | |||
{ BrighterSemanticConventions.Operation, operation.ToSpanName() }, | |||
{ BrighterSemanticConventions.RequestId, request.Id }, |
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.
Good call. Thanks
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.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.15 (9.68 -> 9.53)
- Declining Code Health: 2 findings(s) 🚩
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.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.14 (9.68 -> 9.53)
- Declining Code Health: 2 findings(s) 🚩
Thanks for the review @iancooper. I'm happy for it to be merged whenever. |
@jtsalva Done. |
Add support to generate metrics from traces as described in #3389 following OpenTelemetry Semantic Conventions 1.29.0 for messaging and database operations.