-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[AzureMonitorExporter] refactor demo projects #31204
Conversation
API change check API changes are not detected in this pull request. |
...OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Demo/Metrics/MetricDemo.cs
Show resolved
Hide resolved
...r.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Demo/Traces/TraceDemo.cs
Outdated
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.
LGTM, left minor suggestion on shutdown
/dispose
.
* refactor demo project * update comment * cleanup. added comments. removed Shutdown.
|
||
var resourceBuilder = ResourceBuilder.CreateDefault().AddAttributes(resourceAttributes); | ||
|
||
this.tracerProvider = Sdk.CreateTracerProviderBuilder() |
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.
Its confusing that the ActivityEnrichingProcessor() and ActivityFilteringProcessor() are part of this project and not the SDK. Given that there are links to just this file as a sample, I got lost trying to find these - especially as github search is somewhat broken these days,
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.
HI @samsp-msft, point taken. I'll bring this up with the team about making these more discoverable. Thanks!
Refactor demo project as was discussed here: #30860 (comment)
Changes
Future work: customization examples will be added to these directories to accompany public Documentation.
Program.cs
into three new classes "LogDemo", "MetricDemo", and "TraceDemo".ActivityEnrichingProcessor
andActivityFilteringProcessor
to "Demo\Traces" directory.