@@ -277,13 +277,19 @@ struct opentelemetry_context *flb_opentelemetry_context_create(struct flb_output
277
277
return NULL ;
278
278
}
279
279
280
+ ret = check_proxy (ins , ctx , host , port , protocol , logs_uri );
281
+ if (ret == -1 ) {
282
+ flb_opentelemetry_context_destroy (ctx );
283
+ return NULL ;
284
+ }
285
+
280
286
ret = check_proxy (ins , ctx , host , port , protocol , metrics_uri );
281
287
if (ret == -1 ) {
282
288
flb_opentelemetry_context_destroy (ctx );
283
289
return NULL ;
284
290
}
285
291
286
- ret = check_proxy (ins , ctx , host , port , protocol , logs_uri );
292
+ ret = check_proxy (ins , ctx , host , port , protocol , traces_uri );
287
293
if (ret == -1 ) {
288
294
flb_opentelemetry_context_destroy (ctx );
289
295
return NULL ;
@@ -496,7 +502,7 @@ struct opentelemetry_context *flb_opentelemetry_context_create(struct flb_output
496
502
flb_plg_error (ins , "failed to create record accessor for resource attributes" );
497
503
}
498
504
499
- ctx -> ra_resource_schema_url = flb_ra_create ("$schema_url" , FLB_FALSE );
505
+ ctx -> ra_resource_schema_url = flb_ra_create ("$resource[' schema_url'] " , FLB_FALSE );
500
506
if (ctx -> ra_resource_schema_url == NULL ) {
501
507
flb_plg_error (ins , "failed to create record accessor for resource schema url" );
502
508
}
0 commit comments