File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments