We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e126767 commit 968c992Copy full SHA for 968c992
trace/main.py
@@ -28,7 +28,10 @@ def initialize_tracer(project_id):
28
exporter = stackdriver_exporter.StackdriverExporter(
29
project_id=project_id
30
)
31
- tracer = opencensus.trace.tracer.Tracer(exporter=exporter)
+ tracer = opencensus.trace.tracer.Tracer(
32
+ exporter=exporter,
33
+ sampler=opencensus.trace.tracer.samplers.AlwaysOnSampler()
34
+ )
35
36
return tracer
37
# [END trace_setup_python_configure]
0 commit comments