Skip to content

Commit f7ffbe5

Browse files
leonardo-albertovichedsiper
authored andcommitted
out_opentelemetry: renamed option as requested
Signed-off-by: Leonardo Alminana <[email protected]>
1 parent 0d8eeed commit f7ffbe5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plugins/in_opentelemetry/opentelemetry.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static struct flb_config_map config_map[] = {
209209
"environments"
210210
},
211211
{
212-
FLB_CONFIG_MAP_BOOL, "encode_profiles_as_text", "true",
212+
FLB_CONFIG_MAP_BOOL, "encode_profiles_as_log", "true",
213213
0, FLB_TRUE, offsetof(struct flb_opentelemetry, encode_profiles_as_text),
214214
"Encode profiles received as text and ingest them in the logging pipeline"
215215
},

plugins/in_opentelemetry/opentelemetry.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct flb_opentelemetry {
3939
int tag_from_uri;
4040
flb_sds_t logs_metadata_key;
4141
int profile_support_enabled;
42-
int encode_profiles_as_text;
42+
int encode_profiles_as_log;
4343

4444
struct flb_input_instance *ins;
4545

plugins/in_opentelemetry/opentelemetry_prot.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,7 @@ static int process_payload_profiles_ng(struct flb_opentelemetry *ctx,
27822782
return -1;
27832783
}
27842784

2785-
if (ctx->encode_profiles_as_text) {
2785+
if (ctx->encode_profiles_as_log) {
27862786
ret = ingest_profiles_context_as_log_entry(ctx,
27872787
tag,
27882788
profiles_context);

0 commit comments

Comments
 (0)