Skip to content

Commit 6b41200

Browse files
authored
Merge pull request #104510 from lzchen/oc
Add connection string instructions to OpenCensus Python docs
2 parents cb84b8f + 244bb75 commit 6b41200

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-monitor/app/opencensus-python.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Here are the exporters that OpenCensus provides mapped to the types of telemetry
104104
[SpanData(name='test', context=SpanContext(trace_id=8aa41bc469f1a705aed1bdb20c342603, span_id=None, trace_options=TraceOptions(enabled=True), tracestate=None), span_id='f3f9f9ee6db4740a', parent_span_id=None, attributes=BoundedDict({}, maxlen=32), start_time='2019-06-27T18:21:46.157732Z', end_time='2019-06-27T18:21:47.269583Z', child_span_count=0, stack_trace=None, annotations=BoundedList([], maxlen=32), message_events=BoundedList([], maxlen=128), links=BoundedList([], maxlen=32), status=None, same_process_as_parent_span=None, span_kind=0)]
105105
```
106106

107-
3. Although entering values is helpful for demonstration purposes, ultimately we want to emit the `SpanData` to Azure Monitor. Modify your code from the previous step based on the following code sample:
107+
3. Although entering values is helpful for demonstration purposes, ultimately we want to emit the `SpanData` to Azure Monitor. Pass your connection string directly into the exporter, or you can specify it in an environment variable `APPLICATIONINSIGHTS_CONNECTION_STRING`. Modify your code from the previous step based on the following code sample:
108108

109109
```python
110110
from opencensus.ext.azure.trace_exporter import AzureExporter
@@ -190,7 +190,7 @@ Here are the exporters that OpenCensus provides mapped to the types of telemetry
190190
Point(value=ValueLong(7), timestamp=2019-10-09 20:58:07.138614)
191191
```
192192

193-
3. Although entering values is helpful for demonstration purposes, ultimately we want to emit the metric data to Azure Monitor. Modify your code from the previous step based on the following code sample:
193+
3. Although entering values is helpful for demonstration purposes, ultimately we want to emit the metric data to Azure Monitor. Pass your connection string directly into the exporter, or you can specify it in an environment variable `APPLICATIONINSIGHTS_CONNECTION_STRING`. Modify your code from the previous step based on the following code sample:
194194

195195
```python
196196
from datetime import datetime
@@ -274,7 +274,7 @@ Here are the exporters that OpenCensus provides mapped to the types of telemetry
274274
90
275275
```
276276

277-
3. Although entering values is helpful for demonstration purposes, ultimately we want to emit the log data to Azure Monitor. Modify your code from the previous step based on the following code sample:
277+
3. Although entering values is helpful for demonstration purposes, ultimately we want to emit the log data to Azure Monitor. Pass your connection string directly into the exporter, or you can specify it in an environment variable `APPLICATIONINSIGHTS_CONNECTION_STRING`. Modify your code from the previous step based on the following code sample:
278278

279279
```python
280280
import logging

0 commit comments

Comments
 (0)