Skip to content

Commit

Permalink
create instrumenter directly, aligning code between agent and library
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Jun 19, 2024
1 parent 65d8b4b commit b52e3dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public final class NettyClientSingletons {
JavaagentHttpClientInstrumenterBuilder.createWithCustomizer(
INSTRUMENTATION_NAME,
new NettyHttpClientAttributesGetter(),
Optional.empty(),
Optional.of(HttpRequestHeadersSetter.INSTANCE),
builder -> {
builder.addContextCustomizer(
(context, requestAndChannel, startAttributes) -> NettyErrorHolder.init(context));
Expand Down

0 comments on commit b52e3dc

Please sign in to comment.