Skip to content

Commit 0bea914

Browse files
nuclearpidgeonedsiper
authored andcommitted
in_opentelemetry: Propogate tag in http2 metrics and trace handlers
Signed-off-by: Stewart Webb <[email protected]>
1 parent 557b0b5 commit 0bea914

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/in_opentelemetry/opentelemetry_prot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ static int process_payload_metrics_ng(struct flb_opentelemetry *ctx,
22422242
cfl_list_foreach(iterator, &decoded_contexts) {
22432243
context = cfl_list_entry(iterator, struct cmt, _head);
22442244

2245-
result = flb_input_metrics_append(ctx->ins, NULL, 0, context);
2245+
result = flb_input_metrics_append(ctx->ins, tag, cfl_sds_len(tag), context);
22462246

22472247
if (result != 0) {
22482248
flb_plg_debug(ctx->ins, "could not ingest metrics context : %d", result);
@@ -2301,7 +2301,7 @@ static int process_payload_traces_proto_ng(struct flb_opentelemetry *ctx,
23012301
}
23022302

23032303
if (result == 0) {
2304-
result = flb_input_trace_append(ctx->ins, NULL, 0, decoded_context);
2304+
result = flb_input_trace_append(ctx->ins, tag, cfl_sds_len(tag), decoded_context);
23052305
ctr_decode_opentelemetry_destroy(decoded_context);
23062306
}
23072307
else {

0 commit comments

Comments
 (0)