Skip to content

Http request method#2985

Open
obenkenobi wants to merge 10 commits into
mainfrom
http-request-method
Open

Http request method#2985
obenkenobi wants to merge 10 commits into
mainfrom
http-request-method

Conversation

@obenkenobi

Copy link
Copy Markdown
Contributor

Overview

All HTTP external traces now report an agent/span attribute named "http.request.method". As per spec requirements, this attribute reports uppercase HTTP Verbs (i.e. GET, POST, PUT, DELETE, etc).

Every instrumentation modules that reports HTTP external calls (excluding AWS SDK and GRPC instrumentation) are updated to support that attribute.

This is accomplished via the new agent bridge APIs:

AgentBridge.getAgent().setHttpMethod(segment, method);

and

AgentBridge.getAgent().getTracedMethod().setHttpMethod(method);

Related Github Issue

#2637

@codecov-commenter

codecov-commenter commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 14.28571% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 37.86%. Comparing base (91fe8ff) to head (af89ed7).
⚠️ Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
...gent/src/main/java/com/newrelic/agent/Segment.java 0.00% 4 Missing ⚠️
...nt/src/main/java/com/newrelic/agent/AgentImpl.java 0.00% 3 Missing ⚠️
...java/com/newrelic/agent/tracers/DefaultTracer.java 0.00% 3 Missing ⚠️
...ava/com/newrelic/agent/tracers/AbstractTracer.java 0.00% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (91fe8ff) and HEAD (af89ed7). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (91fe8ff) HEAD (af89ed7)
3 2
Additional details and impacted files
@@              Coverage Diff              @@
##               main    #2985       +/-   ##
=============================================
- Coverage     70.84%   37.86%   -32.99%     
+ Complexity    10670     5474     -5196     
=============================================
  Files           873      871        -2     
  Lines         42960    42944       -16     
  Branches       6501     6499        -2     
=============================================
- Hits          30436    16261    -14175     
- Misses         9591    24419    +14828     
+ Partials       2933     2264      -669     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jasonjkeller jasonjkeller moved this from Triage to In Progress in Java Engineering Board Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants