@@ -91,7 +91,7 @@ void nr_lib_aws_sdk_php_sqs_handle(nr_segment_t* auto_segment,
91
91
size_t command_name_len ,
92
92
NR_EXECUTE_PROTO ) {
93
93
char * command_arg_value = NULL ;
94
- nr_segment_t * segment = NULL ;
94
+ nr_segment_t * message_segment = NULL ;
95
95
96
96
nr_segment_message_params_t message_params = {
97
97
.library = SQS_LIBRARY_NAME ,
@@ -129,12 +129,12 @@ void nr_lib_aws_sdk_php_sqs_handle(nr_segment_t* auto_segment,
129
129
* only create the segment now, grab the parent segment start time, add our
130
130
* special segment attributes/metrics then close the newly created segment.
131
131
*/
132
- segment = nr_segment_start (NRPRG (txn ), auto_segment , NULL );
133
- if (NULL == segment ) {
132
+ message_segment = nr_segment_start (NRPRG (txn ), auto_segment , NULL );
133
+ if (NULL == message_segment ) {
134
134
return ;
135
135
}
136
136
/* re-use start time from auto_segment started in func_begin */
137
- segment -> start_time = auto_segment -> start_time ;
137
+ message_segment -> start_time = auto_segment -> start_time ;
138
138
cloud_attrs .aws_operation = command_name_string ;
139
139
140
140
command_arg_value = nr_lib_aws_sdk_php_get_command_arg_value (
@@ -149,10 +149,10 @@ void nr_lib_aws_sdk_php_sqs_handle(nr_segment_t* auto_segment,
149
149
150
150
/* Add cloud attributes, if available. */
151
151
152
- nr_segment_traces_add_cloud_attributes (segment , & cloud_attrs );
152
+ nr_segment_traces_add_cloud_attributes (message_segment , & cloud_attrs );
153
153
154
154
/* Now end the instrumented segment as a message segment. */
155
- nr_segment_message_end (& segment , & message_params );
155
+ nr_segment_message_end (& message_segment , & message_params );
156
156
157
157
nr_free (command_arg_value );
158
158
}
0 commit comments