how to always start new TraceId to avoid attack? #9251
-
I have a java application which is started with opentelemetry-agent.jar and is a http gateway application. If some one always send requests with a same traceId, then there is a risk to backend storage like clickhouse or es, too many spans with the same traceId! So I want to start a new span with new traceId every request, ignoring traceparent from outside requests. But span is immutable, I find no api to do this. Anyone help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
(transferring to java-instrumentation repo) you could register your own context propagator which delegates to w3c context propagator for injection (into outgoing requests) and does nothing for extraction (from incoming requests) in the java agent this would require creating an extension |
Beta Was this translation helpful? Give feedback.
(transferring to java-instrumentation repo)
you could register your own context propagator which delegates to w3c context propagator for injection (into outgoing requests) and does nothing for extraction (from incoming requests)
in the java agent this would require creating an extension