DataDog/dd-trace-java

Can trace http request / response?

Closed this issue · 6 comments

My company use datadog Java Trace Agent.

Can trace http request / response?

I can't manual at that.

I'm not sure I understand the question. We trace requests to and from supported http clients and servers. The list of supported frameworks is at https://docs.datadoghq.com/tracing/setup_overview/compatibility_requirements/java/ .

If you're asking if we support adding the request body or response body to a tag, we don't do that automatically.

I'm not sure I understand the question. We trace requests to and from supported http clients and servers. The list of supported frameworks is at https://docs.datadoghq.com/tracing/setup_overview/compatibility_requirements/java/ .

If you're asking if we support adding the request body or response body to a tag, we don't do that automatically.

Sorry my question is ambiguous.

I want to say http request / response headers and body payload text.

For headers, you can use the dd.trace.header.tags system property or DD_TRACE_HEADER_TAGS environment variable to automatically set specific headers as tags. See Configuration Options

We don't support automatically adding the body to traces

For headers, you can use the dd.trace.header.tags system property or DD_TRACE_HEADER_TAGS environment variable to automatically set specific headers as tags. See Configuration Options

We don't support automatically adding the body to traces

Thank you your answer.

For headers, you can use the dd.trace.header.tags system property or DD_TRACE_HEADER_TAGS environment variable to automatically set specific headers as tags. See Configuration Options

We don't support automatically adding the body to traces

@randomanderson - I was trying to send two headers to datadog,
dd.trace.header.tags=cookie:cookie,x-b3-traceid:traceid

the cookie header has been sent successfully, not x-b3-traceid, is there any limitation on hedaers ? or any specific headers alone be sent as tag ?

For headers, you can use the dd.trace.header.tags system property or DD_TRACE_HEADER_TAGS environment variable to automatically set specific headers as tags. See Configuration Options

We don't support automatically adding the body to traces

@randomanderson , is there a way to manually enable the possibility adding the body to traces in Datadog?