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

[AzureMonitorExporter] refactor demo projects #31204

Merged
merged 3 commits into from
Sep 16, 2022
Merged

Conversation

TimothyMothra
Copy link
Contributor

@TimothyMothra TimothyMothra commented Sep 16, 2022

Refactor demo project as was discussed here: #30860 (comment)

Changes

  • Demo Project
    • created sub directories: "Logs", "Metrics", and "Traces".
      Future work: customization examples will be added to these directories to accompany public Documentation.
    • broke up the previous Program.cs into three new classes "LogDemo", "MetricDemo", and "TraceDemo".
  • Traces.Customization project
    • removed project
    • moved ActivityEnrichingProcessor and ActivityFilteringProcessor to "Demo\Traces" directory.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@TimothyMothra TimothyMothra enabled auto-merge (squash) September 16, 2022 18:36
Copy link
Contributor

@rajkumar-rangaraj rajkumar-rangaraj left a 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.

@TimothyMothra TimothyMothra changed the title [AzureMonitorExporter] refactor demo project [AzureMonitorExporter] refactor demo projects Sep 16, 2022
@TimothyMothra TimothyMothra enabled auto-merge (squash) September 16, 2022 20:25
@TimothyMothra TimothyMothra merged commit d6f7e00 into main Sep 16, 2022
@TimothyMothra TimothyMothra deleted the tilee/refactor_demo branch September 16, 2022 20:37
sofiar-msft pushed a commit to sofiar-msft/azure-sdk-for-net that referenced this pull request Dec 7, 2022
* refactor demo project

* update comment

* cleanup. added comments. removed Shutdown.

var resourceBuilder = ResourceBuilder.CreateDefault().AddAttributes(resourceAttributes);

this.tracerProvider = Sdk.CreateTracerProviderBuilder()

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,

Copy link
Contributor Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor - Exporter Monitor OpenTelemetry Exporter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants