From 4ed6294caef4699534c56c9d840f379bced1ab6f Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Thu, 19 Mar 2020 15:21:26 -0700 Subject: [PATCH] Update tracing README sample (#10386) --- sdk/core/azure-core-tracing-opentelemetry/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/core/azure-core-tracing-opentelemetry/README.md b/sdk/core/azure-core-tracing-opentelemetry/README.md index ce09ccb9709b5..65e352643fbd3 100644 --- a/sdk/core/azure-core-tracing-opentelemetry/README.md +++ b/sdk/core/azure-core-tracing-opentelemetry/README.md @@ -39,7 +39,7 @@ from azure.core.tracing.ext.opentelemetry_span import OpenTelemetrySpan settings.tracing_implementation = OpenTelemetrySpan # Example of Azure Monitor exporter, but you can use anything OpenTelemetry supports -from opentelemetry.ext.azure_monitor import AzureMonitorSpanExporter +from azure_monitor import AzureMonitorSpanExporter exporter = AzureMonitorSpanExporter( instrumentation_key="uuid of the instrumentation key (see your Azure Monitor account)" ) @@ -54,9 +54,9 @@ from opentelemetry.sdk.trace.export import SimpleExportSpanProcessor # Simple console exporter exporter = ConsoleSpanExporter() -trace.set_preferred_tracer_implementation(lambda T: TracerSource()) +trace.set_preferred_tracer_source_implementation(lambda T: TracerSource()) tracer = trace.get_tracer(__name__) -tracer.tracer_source().add_span_processor( +trace.tracer_source().add_span_processor( SimpleExportSpanProcessor(exporter) ) @@ -69,7 +69,7 @@ with tracer.start_as_current_span(name="MyApplication"): client.create_container('mycontainer') # Call will be traced ``` -Azure Exporter can be found in the package `opentelemetry-azure-monitor-exporter` +Azure Exporter can be found in the [package](https://github.com/microsoft/opentelemetry-exporters-python) `opentelemetry-azure-monitor-exporter` ## Troubleshooting