Skip to content

Commit 9379d43

Browse files
committed
disable sending telemetry
1 parent 0d344a9 commit 9379d43

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

blackfire_conprof/profiler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def __init__(self, application_name=None, agent_socket=None,
8080
# provide a way to set them
8181
os.environ["DD_PROFILING_UPLOAD_INTERVAL"] = str(period)
8282
os.environ["DD_PROFILING_API_TIMEOUT"] = str(upload_timeout)
83+
os.environ["DD_INSTRUMENTATION_TELEMETRY_ENABLED"] = False
8384

8485
api_key = ''
8586
if server_id and server_token:
@@ -94,9 +95,6 @@ def __init__(self, application_name=None, agent_socket=None,
9495
api_key=api_key,
9596
)
9697

97-
del os.environ["DD_PROFILING_UPLOAD_INTERVAL"]
98-
del os.environ["DD_PROFILING_API_TIMEOUT"]
99-
10098
def start(self, *args, **kwargs):
10199
self._profiler.start(*args, **kwargs)
102100

0 commit comments

Comments
 (0)