-
Notifications
You must be signed in to change notification settings - Fork 782
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
ConsoleExporter to print Activity(Span) Links #2849
ConsoleExporter to print Activity(Span) Links #2849
Conversation
@@ -12,6 +12,8 @@ Released 2021-Nov-29 | |||
the `ConsoleMetricExporter` to export either manually or periodically. | |||
([#2648](https://github.com/open-telemetry/opentelemetry-dotnet/pull/2648)) | |||
|
|||
* ActivityExporter exports Activity Links. |
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.
nit: ConsoleActivityExporter
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.
* ActivityExporter exports Activity Links. | |
* Added `Activity.Links` support to `ConsoleActivityExporter`. |
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.
This is supposed to be under "Unreleased" section?
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.
fixed.
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.
Reopen.
this.WriteLine("Activity.Links:"); | ||
foreach (var activityLink in activity.Links) | ||
{ | ||
this.WriteLine($" {activityLink.Context.TraceId} {activityLink.Context.SpanId}"); |
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.
Do we not want to print the Tags
for the activity link?
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.
coming in future PRs.
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.
So far I haven't seen any semantic convention using Links much... The 1st one I am seeing is https://github.com/open-telemetry/opentelemetry-specification/pull/2078/files It doesn't yet use tags.
Codecov Report
@@ Coverage Diff @@
## main #2849 +/- ##
=======================================
Coverage 83.76% 83.76%
=======================================
Files 250 250
Lines 8882 8882
=======================================
Hits 7440 7440
Misses 1442 1442 |
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.
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.
LGTM with some suggestions.
Fixes #.
Changes
Please provide a brief description of the changes here.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes