DataDog / datadog-lambda-go

The Datadog AWS Lambda package for Go
Apache License 2.0
59 stars 40 forks source link

Traces not seeing in datadog dashboard #48

Closed pyaesone17 closed 3 years ago

pyaesone17 commented 3 years ago

Expected Behavior

Trace should be able to see in datadog dashboard.

Actual Behavior

Although the traces can be able to see it in cloudwatch logs, it is not available in datadog dashboard ui

Steps to Reproduce the Problem

  1. Send trace using library, DD_TRACE_ENABLED = true
  2. Inspect the logs in cloudwatch
  3. Only trace generated from aws xray is visible in datadog dashboard

Specifications

Stacktrace

{
                "trace_id": "7edf85708431adc6",
                "span_id": "7c97152fd75df086",
                "parent_id": "7edf85708431adc6",
                "name": "child.span",
                "resource": "child.span",
                "error": 0,
                "meta": {
                    "__dd.origin": "lambda",
                    "runtime-id": "bee3decd-617d-4c42-bfe7-ef51db1fb58d",
                    "env": "dev"
                },
                "metrics": {
                    "_sampling_priority_v1": 1
                },
                "start": 1605684489077109414,
                "duration": 100055542,
                "service": "aws.lambda"
            }
pyaesone17 commented 3 years ago

Even on datadog forwarder log, I could able to see forwarder is sending data to datadog api. But no way to find that trace on dashboard.

e810928c-7eb7-47e5-ad7d-e64d70802d60 [dd.trace_id=2797649578175323534 dd.span_id=3687513275442048469] 202 POST https://api.datadoghq.eu/api/v1/distribution_points (312.5234ms) [INFO] 2020-11-18T10:51:07.417Z e810928c-7eb7-47e5-ad7d-e64d70802d60 [dd.trace_id=2797649578175323534 dd.span_id=3687513275442048469] 202 POST https://api.datadoghq.eu/api/v1/distribution_points (312.5234ms) 2020/11/18/[$LATEST]118a533a1fb24a60b0835e70d25f3c5b
pyaesone17 commented 3 years ago

Similar to this issue https://github.com/DataDog/datadog-serverless-functions/issues/283