File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/opentelemetry/sdk/resources Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## Unreleased
9
9
10
+ - Update sdk process resource detector ` process.command_args ` attribute to also include the executable itself
11
+ ([ #4032 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4032 ) )
10
12
- Fix ` start_time_unix_nano ` for delta collection for explicit bucket histogram aggregation
11
13
([ #4009 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4009 ) )
12
14
- Fix ` start_time_unix_nano ` for delta collection for sum aggregation
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ def detect(self) -> "Resource":
348
348
_process_executable_path = os .path .dirname (_process_executable_name )
349
349
_process_command = sys .argv [0 ]
350
350
_process_command_line = " " .join (sys .argv )
351
- _process_command_args = sys .argv [ 1 :]
351
+ _process_command_args = sys .argv
352
352
resource_info = {
353
353
PROCESS_RUNTIME_DESCRIPTION : sys .version ,
354
354
PROCESS_RUNTIME_NAME : sys .implementation .name ,
Original file line number Diff line number Diff line change @@ -608,7 +608,7 @@ def test_process_detector(self):
608
608
)
609
609
self .assertEqual (
610
610
aggregated_resource .attributes [PROCESS_COMMAND_ARGS ],
611
- tuple (sys .argv [ 1 :] ),
611
+ tuple (sys .argv ),
612
612
)
613
613
614
614
def test_resource_detector_entry_points_default (self ):
You can’t perform that action at this time.
0 commit comments