hypertrace / javaagent

Hypertrace OpenTelemetry Java agent with payload/body and headers data capture.
Apache License 2.0
33 stars 15 forks source link

Fix netty connection keep alive #385

Closed shashank11p closed 1 year ago

shashank11p commented 1 year ago

When a client used Connection: keep-alive header, only the first request was being captured. Subsequent requests were using the same context and so we were adding data in the same first span that was ended.

We are setting the context as null when we end the span, so that whenever a new request comes, no matter, it will create a new context and a new span.

Tested this for both connection keep-alive and close.