Skip to content

Commit b0a1434

Browse files
authored
Merge pull request #1259 from jd/profiler/remove-pid-arg
fix(profiler): remove unused pid parameter in http/file exporters
2 parents b57b5ef + ac3f910 commit b0a1434

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ddtrace/profile/exporter/file.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ class PprofFileExporter(pprof.PprofExporter):
1212
prefix = attr.ib()
1313
_increment = attr.ib(default=1, init=False, repr=False)
1414

15-
def export(self, events, pid=None):
15+
def export(self, events):
1616
"""Export events to pprof file.
1717
1818
The file name is based on the prefix passed to init. The process ID number and type of export is then added as a
1919
suffix.
2020
2121
:param events: The event dictionary from a `ddtrace.profile.recorder.Recorder`.
22-
:param pid: Filter events by process ID. Default is current PID. Use `False` to disable filtering.
2322
"""
2423
profile = super(PprofFileExporter, self).export(events)
2524
with gzip.open(self.prefix + (".%d.%d" % (os.getpid(), self._increment)), "wb") as f:

ddtrace/profile/exporter/http.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,10 @@ def _get_tags(service):
121121
tags[key] = value
122122
return tags
123123

124-
def export(self, events, pid=None):
124+
def export(self, events):
125125
"""Export events to an HTTP endpoint.
126126
127127
:param events: The event dictionary from a `ddtrace.profile.recorder.Recorder`.
128-
:param pid: Filter events by process ID. Default is current PID. Use `False` to disable filtering.
129128
"""
130129
if not self.endpoint:
131130
raise InvalidEndpoint("Endpoint is empty")

0 commit comments

Comments
 (0)