Skip to content

Commit

Permalink
Remove incorrect comments in LWP::UserAgent integration
Browse files Browse the repository at this point in the history
  • Loading branch information
jjatria committed May 10, 2024
1 parent 7bc3aa8 commit f504002
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/OpenTelemetry/Integration/LWP/UserAgent.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 ) : (),
},
);
Expand Down

0 comments on commit f504002

Please sign in to comment.