@@ -277,13 +277,19 @@ struct opentelemetry_context *flb_opentelemetry_context_create(struct flb_output
277277 return NULL ;
278278 }
279279
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+
280286 ret = check_proxy (ins , ctx , host , port , protocol , metrics_uri );
281287 if (ret == -1 ) {
282288 flb_opentelemetry_context_destroy (ctx );
283289 return NULL ;
284290 }
285291
286- ret = check_proxy (ins , ctx , host , port , protocol , logs_uri );
292+ ret = check_proxy (ins , ctx , host , port , protocol , traces_uri );
287293 if (ret == -1 ) {
288294 flb_opentelemetry_context_destroy (ctx );
289295 return NULL ;
@@ -496,7 +502,7 @@ struct opentelemetry_context *flb_opentelemetry_context_create(struct flb_output
496502 flb_plg_error (ins , "failed to create record accessor for resource attributes" );
497503 }
498504
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 );
500506 if (ctx -> ra_resource_schema_url == NULL ) {
501507 flb_plg_error (ins , "failed to create record accessor for resource schema url" );
502508 }
0 commit comments