Skip to content

Commit

Permalink
feat(agent): Add message typed attributes to a hash in the buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
zsistla committed Oct 24, 2024
1 parent 8924003 commit 5402097
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions axiom/nr_segment_traces.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ static void add_typed_attributes_to_buffer(nrbuf_t* buf,
ext->transaction_guid, false);
add_hash_key_value_to_buffer_int(buf, "status", &ext->status);
} break;
case NR_SEGMENT_MESSAGE: {
const nr_segment_message_t* message = &segment->typed_attributes->message;
add_hash_key_value_to_buffer(buf, "action", message->action, false);
add_hash_key_value_to_buffer(buf, "library", message->library, false);
add_hash_key_value_to_buffer(buf, "destination_type",
message->destination_type, false);
add_hash_key_value_to_buffer(buf, "destination_name",
message->destination_name, false);
} break;
case NR_SEGMENT_CUSTOM:
default:
break;
Expand Down

0 comments on commit 5402097

Please sign in to comment.