Skip to content

Commit

Permalink
out_opentelemetry: renamed option as requested
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Dec 19, 2024
1 parent b6a778b commit e67d47d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/in_opentelemetry/opentelemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static struct flb_config_map config_map[] = {
"environments"
},
{
FLB_CONFIG_MAP_BOOL, "encode_profiles_as_text", "true",
FLB_CONFIG_MAP_BOOL, "encode_profiles_as_log", "true",
0, FLB_TRUE, offsetof(struct flb_opentelemetry, encode_profiles_as_text),
"Encode profiles received as text and ingest them in the logging pipeline"
},
Expand Down
2 changes: 1 addition & 1 deletion plugins/in_opentelemetry/opentelemetry.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct flb_opentelemetry {
int tag_from_uri;
flb_sds_t logs_metadata_key;
int profile_support_enabled;
int encode_profiles_as_text;
int encode_profiles_as_log;

struct flb_input_instance *ins;

Expand Down
2 changes: 1 addition & 1 deletion plugins/in_opentelemetry/opentelemetry_prot.c
Original file line number Diff line number Diff line change
Expand Up @@ -2782,7 +2782,7 @@ static int process_payload_profiles_ng(struct flb_opentelemetry *ctx,
return -1;
}

if (ctx->encode_profiles_as_text) {
if (ctx->encode_profiles_as_log) {
ret = ingest_profiles_context_as_log_entry(ctx,
tag,
profiles_context);
Expand Down

0 comments on commit e67d47d

Please sign in to comment.