-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
For HTTP web services using ADOT Java SDK v1.33.0 (release) with the OTel metrics exporter enabled (disabled by default in AppSignals), metrics like http.server.duration
may be emitted with the calling endpoints as the attributes. This can result in high cardinality, potentially hitting the protection limit in the OTel SDK and causing other metrics to be dropped.
Steps to reproduce
Install ADOT Java SDK v1.33.0 for Http web service, and not set OTLP_METRICS_EXPORTER=None
What did you expect to see?
http.server.duration
Metric should not include potential high cardinality value such as net.sock.peer.addr="127.0.0.1", net.sock.peer.port=53801
as attributes
`
What did you see instead?
name=http.server.duration, description=The duration of the inbound HTTP request, unit=ms, type=HISTOGRAM, data=ImmutableHistogramData{aggregationTemporality=CUMULATIVE, points=[ImmutableHistogramPointData{getStartEpochNanos=1751565719584159000, getEpochNanos=1751565779591713000, getAttributes={http.method="GET", http.response_content_length=31, http.route="/MyApp/hello", http.scheme="http", http.status_code=200, http.target="/MyApp/hello", net.host.name="localhost", net.host.port=8080, net.protocol.name="http", net.protocol.version="1.1", net.sock.host.addr="127.0.0.1", net.sock.host.port=8080, net.sock.peer.addr="127.0.0.1", net.sock.peer.port=53801, user_agent.original="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0"}, getSum=38.756417, getCount=1, hasMin=true, getMin=38.756417, hasMax=true, getMax=38.756417, getBoundaries=[0.0, 5.0, 10.0, 25.0, 50.0, 75.0, 100.0, 250.0, 500.0, 750.0, 1000.0, 2500.0, 5000.0, 7500.0, 10000.0], getCounts=[0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], getExemplars=[ImmutableDoubleExemplarData{filteredAttributes={}, epochNanos=1751565749601000000, spanContext=ImmutableSpanContext{traceId=6866c5b573f061804eba4f3721a6742e, spanId=9a4abaa16f143978, traceFlags=01, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, value=38.756417}]}]}}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working