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
77
88## Unreleased
99
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 ) )
1012- Fix ` start_time_unix_nano ` for delta collection for explicit bucket histogram aggregation
1113 ([ #4009 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4009 ) )
1214- 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":
348348 _process_executable_path = os .path .dirname (_process_executable_name )
349349 _process_command = sys .argv [0 ]
350350 _process_command_line = " " .join (sys .argv )
351- _process_command_args = sys .argv [ 1 :]
351+ _process_command_args = sys .argv
352352 resource_info = {
353353 PROCESS_RUNTIME_DESCRIPTION : sys .version ,
354354 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):
608608 )
609609 self .assertEqual (
610610 aggregated_resource .attributes [PROCESS_COMMAND_ARGS ],
611- tuple (sys .argv [ 1 :] ),
611+ tuple (sys .argv ),
612612 )
613613
614614 def test_resource_detector_entry_points_default (self ):
You can’t perform that action at this time.
0 commit comments