Closed vovayartsev closed 6 years ago
Hmm...I think you could turn on verbose logging to see the entire log line in your datadog agent. Its very possible that something is missing in the custom tracing. I've used the custom tracing in the past and didn't have any issues, although I don't use it now.
Thanks, indeed, there is DD_LOG_LEVEL=debug
env var.
And the root cause of my problem was missing resource
keyword arg to Tracer.trace()
macro call.
Should resource
become a required argument?
Yes, resource
is required by the DataDog API. I hit the same problem getting started.
I'm not sure the best way to handle this. Often, the resource will be known after starting the initial trace, so we don't want to make it required to start. Likewise with something that is likely going to be interwoven into a large amount of data pipelining I hesitate to add a log warning or error message when a span gets sent without a service. In fact, there is a ticket that I think we should use for this, that basically is a strict
mode, where failures in spandex actually incur failures and logs in the parent application. With that in mind, we could do this validation there, and have people develop in strict
mode.
The ticket is here: https://github.com/zachdaniel/spandex/issues/56
We can discuss over there.
ENVIRONMENT
Hey! Phoenix/Plug works fine for me, but I can not do custom tracing:
Datadog Agent rejects this trace:
Am I missing some required params in my example?