From f5040027a9e3f72004af299d9a008c99594a6365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Joaqu=C3=ADn=20Atria?= Date: Fri, 10 May 2024 18:16:46 +0100 Subject: [PATCH] Remove incorrect comments in LWP::UserAgent integration --- lib/OpenTelemetry/Integration/LWP/UserAgent.pm | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/OpenTelemetry/Integration/LWP/UserAgent.pm b/lib/OpenTelemetry/Integration/LWP/UserAgent.pm index 356c389..33f6e52 100644 --- a/lib/OpenTelemetry/Integration/LWP/UserAgent.pm +++ b/lib/OpenTelemetry/Integration/LWP/UserAgent.pm @@ -83,9 +83,6 @@ sub install ( $class, %config ) { 'url.full' => "$uri", # redacted 'user_agent.original' => $self->agent, - # This does not include auto-generated headers - # Capturing those would require to hook into the - # handle's write_request method get_headers( $self->default_headers, \@wanted_request_headers, @@ -98,10 +95,6 @@ sub install ( $class, %config ) { 'http.request.header' ), - # Request body can be generated with a data_callback - # parameter, in which case we don't set this attribute - # Setting it would likely involve us hooking into the - # handle's write_body method $length ? ( 'http.request.body.size' => $length ) : (), }, );