Skip to content

Conversation

@jeremydvoss
Copy link
Member

Description

Added an OpenTelemetry Distro and an OpenTelemetry Configurator. These provide a way to customize auto-instrumentation. The distro sets the default exporters to the Azure Monitor exporters. The configurator does not currently add any additional functionality to the base OT configurator, but can be edited to do so in the future.

Related PR

This PR added the exporter entry points which enabled auto-instrumentation to access the exporters. Since this PR includes using those exporters as the default, auto-instrumentation will only work properly when your version of exporters include the addition of the entry points.

Testing

Testing by pointing to a version of the azure-monitor-opentelemetry-exporter with the entry points and triggering auto-instrumentation. Spans were created successfully.

@lzchen lzchen self-requested a review as a code owner August 2, 2022 17:52
@jeremydvoss jeremydvoss requested a review from a team as a code owner August 5, 2022 00:12
@jeremydvoss
Copy link
Member Author

Tested with the new exporter release. Working correctly.


class AzureMonitorDistro(BaseDistro):
def _configure(self, **kwargs):
environ.setdefault(OTEL_LOGS_EXPORTER, "azure_monitor_opentelemetry_exporter")
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's comment this out and leave a TODO until logging is not in preview anymore.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do

@jeremydvoss jeremydvoss merged commit a0d5066 into microsoft:main Aug 16, 2022
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