Skip to content

Commit a61fd46

Browse files
authored
Merge pull request #268022 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/azure-docs (branch main)
2 parents 5d3b29e + 55ede10 commit a61fd46

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

articles/azure-monitor/app/opentelemetry-add-modify.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,21 +1769,21 @@ Use a custom processor:
17691769
from azure.monitor.opentelemetry import configure_azure_monitor
17701770
from opentelemetry import trace
17711771

1772+
# Create a SpanEnrichingProcessor instance.
1773+
span_enrich_processor = SpanEnrichingProcessor()
1774+
17721775
# Configure OpenTelemetry to use Azure Monitor with the specified connection string.
17731776
# Replace `<your-connection-string>` with the connection string to your Azure Monitor Application Insights resource.
17741777
configure_azure_monitor(
17751778
connection_string="<your-connection-string>",
1779+
# Configure the custom span processors to include span enrich processor.
1780+
span_processors=[span_enrich_processor],
17761781
)
17771782

1778-
# Create a SpanEnrichingProcessor instance.
1779-
span_enrich_processor = SpanEnrichingProcessor()
1780-
1781-
# Add the span enrich processor to the current TracerProvider.
1782-
trace.get_tracer_provider().add_span_processor(span_enrich_processor)
17831783
...
17841784
```
17851785

1786-
Add `SpanEnrichingProcessor.py` to your project with the following code:
1786+
Add `SpanEnrichingProcessor` to your project with the following code:
17871787

17881788
```python
17891789
# Import the SpanProcessor class from the opentelemetry.sdk.trace module.
@@ -2205,14 +2205,14 @@ Use the add [custom property example](#add-a-custom-property-to-a-span), but rep
22052205
# Replace `<your-connection-string>` with the connection string to your Azure Monitor Application Insights resource.
22062206
configure_azure_monitor(
22072207
connection_string="<your-connection-string>",
2208+
# Configure the custom span processors to include span filter processor.
2209+
span_processors=[span_filter_processor],
22082210
)
2209-
2210-
# Add a SpanFilteringProcessor to the tracer provider.
2211-
trace.get_tracer_provider().add_span_processor(SpanFilteringProcessor())
2211+
22122212
...
22132213
```
22142214

2215-
Add `SpanFilteringProcessor.py` to your project with the following code:
2215+
Add `SpanFilteringProcessor` to your project with the following code:
22162216

22172217
```python
22182218
# Import the necessary libraries.

articles/azure-monitor/app/opentelemetry-enable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Follow the steps in this section to instrument your application with OpenTelemet
5454

5555
### [Python](#tab/python)
5656

57-
- Python Application using Python 3.7+
57+
- Python Application using Python 3.8+
5858

5959
---
6060

articles/azure-monitor/includes/azure-monitor-app-insights-opentelemetry-faqs.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ Adopting OpenTelemetry now prevents having to migrate at a later date.
6666

6767
For ASP.NET Core, Java, Node.js, and Python, we recommend using the OpenTelemetry distro. It's one line of code to get started.
6868

69-
For all other .NET scenarios (like classic ASP.NET, Console apps etc.), we recommend using our exporter: `Azure.Monitor.OpenTelemetry.Exporter`.
69+
For all other .NET scenarios (like classic ASP.NET, Console apps etc.), we recommend using the .NET Azure Monitor OpenTelemetry exporter: `Azure.Monitor.OpenTelemetry.Exporter`.
70+
71+
For more complex Python telemetry scenarios that require advanced configuration, we recommend using the Python [Azure Monitor OpenTelemetry Exporter](/python/api/overview/azure/monitor-opentelemetry-exporter-readme?view=azure-python-preview&preserve-view=true).
7072

7173
### What's the current release state of features within the Azure Monitor OpenTelemetry Distro?
7274

0 commit comments

Comments
 (0)