Skip to content

Commit 33d40f1

Browse files
committed
style(agent): rename variable
1 parent c7791f7 commit 33d40f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

agent/lib_aws_sdk_php.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void nr_lib_aws_sdk_php_sqs_handle(nr_segment_t* auto_segment,
9191
size_t command_name_len,
9292
NR_EXECUTE_PROTO) {
9393
char* command_arg_value = NULL;
94-
nr_segment_t* segment = NULL;
94+
nr_segment_t* message_segment = NULL;
9595

9696
nr_segment_message_params_t message_params = {
9797
.library = SQS_LIBRARY_NAME,
@@ -129,12 +129,12 @@ void nr_lib_aws_sdk_php_sqs_handle(nr_segment_t* auto_segment,
129129
* only create the segment now, grab the parent segment start time, add our
130130
* special segment attributes/metrics then close the newly created segment.
131131
*/
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) {
134134
return;
135135
}
136136
/* 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;
138138
cloud_attrs.aws_operation = command_name_string;
139139

140140
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,
149149

150150
/* Add cloud attributes, if available. */
151151

152-
nr_segment_traces_add_cloud_attributes(segment, &cloud_attrs);
152+
nr_segment_traces_add_cloud_attributes(message_segment, &cloud_attrs);
153153

154154
/* 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);
156156

157157
nr_free(command_arg_value);
158158
}

0 commit comments

Comments
 (0)