Skip to content

Commit 6372ddb

Browse files
committed
out_opentelemetry: clean up auth setup failure
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
1 parent b82feb5 commit 6372ddb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

plugins/out_opentelemetry/opentelemetry.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -585,14 +585,10 @@ int opentelemetry_post(struct opentelemetry_context *ctx,
585585

586586
if (result != 0) {
587587
flb_plg_error(ctx->ins, "error setting http authorization data");
588+
flb_http_client_request_destroy(request, FLB_TRUE);
588589

589590
return FLB_RETRY;
590591
}
591-
592-
flb_http_request_set_authorization(request,
593-
HTTP_WWW_AUTHORIZATION_SCHEME_BASIC,
594-
ctx->http_user,
595-
ctx->http_passwd);
596592
}
597593

598594
#ifdef FLB_HAVE_SIGNV4

0 commit comments

Comments
 (0)