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

[Feature] Generate metrics from traces #3453

Merged

Conversation

jtsalva
Copy link
Contributor

@jtsalva jtsalva commented Jan 3, 2025

Add support to generate metrics from traces as described in #3389 following OpenTelemetry Semantic Conventions 1.29.0 for messaging and database operations.

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a 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) 🚩

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a 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) 🚩

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a 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) 🚩

View detailed results in CodeScene

@jtsalva jtsalva changed the title [Feature] Generate metrics from traces #3389 [Feature] Generate metrics from traces Jan 3, 2025
@jtsalva jtsalva marked this pull request as ready for review January 3, 2025 14:38
Copy link
Member

@iancooper iancooper left a 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

Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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 },
Copy link
Member

Choose a reason for hiding this comment

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

Good call. Thanks

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a 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) 🚩

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a 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) 🚩

View detailed results in CodeScene

@jtsalva
Copy link
Contributor Author

jtsalva commented Jan 3, 2025

Thanks for the review @iancooper. I'm happy for it to be merged whenever.

@iancooper iancooper merged commit 071deb5 into BrighterCommand:master Jan 3, 2025
12 of 20 checks passed
@iancooper
Copy link
Member

@jtsalva Done.

@jtsalva jtsalva deleted the feature-3389-metrics-from-traces branch January 3, 2025 20:14
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.

2 participants