@@ -35,9 +35,9 @@ First, instrument your Python application with latest [OpenCensus Python SDK](..
35
35
```python
36
36
OPENCENSUS = {
37
37
' TRACE' : {
38
- ' SAMPLER' : ' opencensus.trace.samplers.ProbabilitySampler(rate=0.5 )' ,
38
+ ' SAMPLER' : ' opencensus.trace.samplers.ProbabilitySampler(rate=1 )' ,
39
39
' EXPORTER' : ''' opencensus.ext.azure.trace_exporter.AzureExporter(
40
- service_name='foobar',
40
+ connection_string="InstrumentationKey=<your-ikey-here>"
41
41
)''' ,
42
42
}
43
43
}
@@ -50,9 +50,9 @@ First, instrument your Python application with latest [OpenCensus Python SDK](..
50
50
' TRACE' : {
51
51
' SAMPLER' : ' opencensus.trace.samplers.ProbabilitySampler(rate=0.5)' ,
52
52
' EXPORTER' : ''' opencensus.ext.azure.trace_exporter.AzureExporter(
53
- service_name='foobar' ,
53
+ connection_string="InstrumentationKey=<your-ikey-here>" ,
54
54
)''' ,
55
- ' BLACKLIST_PATHS' : ' https://example.com' , < -- - This site will not be traced if a request is sent from it.
55
+ ' BLACKLIST_PATHS' : [ ' https://example.com' ] , < -- - These sites will not be traced if a request is sent from it.
56
56
}
57
57
}
58
58
```
@@ -91,9 +91,9 @@ First, instrument your Python application with latest [OpenCensus Python SDK](..
91
91
' TRACE' : {
92
92
' SAMPLER' : ' opencensus.trace.samplers.ProbabilitySampler(rate=1.0)' ,
93
93
' EXPORTER' : ''' opencensus.ext.azure.trace_exporter.AzureExporter(
94
- service_name='foobar' ,
94
+ connection_string="InstrumentationKey=<your-ikey-here>" ,
95
95
)''' ,
96
- ' BLACKLIST_PATHS' : ' https://example.com' , < -- - This site will not be traced if a request is sent to it.
96
+ ' BLACKLIST_PATHS' : [ ' https://example.com' ] , < -- - These sites will not be traced if a request is sent to it.
97
97
}
98
98
}
99
99
```
@@ -118,9 +118,9 @@ First, instrument your Python application with latest [OpenCensus Python SDK](..
118
118
' TRACE' : {
119
119
' SAMPLER' : ' opencensus.trace.samplers.ProbabilitySampler(rate=1.0)' ,
120
120
' EXPORTER' : ''' opencensus.ext.azure.trace_exporter.AzureExporter(
121
- service_name='foobar' ,
121
+ connection_string="InstrumentationKey=<your-ikey-here>" ,
122
122
)''' ,
123
- ' BLACKLIST_PATHS' : ' https://example.com' , < -- - This site will not be traced if a request is sent to it.
123
+ ' BLACKLIST_PATHS' : [ ' https://example.com' ] , < -- - These sites will not be traced if a request is sent to it.
124
124
}
125
125
}
126
126
}
0 commit comments