Unable to find Datadog logs for checkout API failures #2314
-
|
I've configured Datadog with opentelemetry-demo by the guide Sending Data from the OpenTelemetry Demo to Datadog. Find my configuration at the end. Now, the data is being sent to Datadog, but I can't find or identify the logs generated by the Could you please check if there is anything wrong with my configuration, if I'm using the wrong API, or provide the exact text I should search for? Here is my otel-collector:
image: ${COLLECTOR_CONTRIB_IMAGE}
container_name: otel-collector
deploy:
resources:
limits:
memory: 200M
restart: unless-stopped
command: [ "--config=/etc/otelcol-config.yml", "--config=/etc/otelcol-config-extras.yml", "--feature-gates=exporter.datadogexporter.UseLogsAgentExporter" ]
user: 0:0
volumes:
- ${HOST_FILESYSTEM}:/hostfs:ro
- ${DOCKER_SOCK}:/var/run/docker.sock:ro
- ${OTEL_COLLECTOR_CONFIG}:/etc/otelcol-config.yml
- ${OTEL_COLLECTOR_CONFIG_EXTRAS}:/etc/otelcol-config-extras.yml
ports:
- "${OTEL_COLLECTOR_PORT_GRPC}"
- "${OTEL_COLLECTOR_PORT_HTTP}"
depends_on:
jaeger:
condition: service_started
# opensearch:
# condition: service_healthy
logging: *logging
environment:
- ENVOY_PORT
- HOST_FILESYSTEM
- OTEL_COLLECTOR_HOST
- OTEL_COLLECTOR_PORT_GRPC
- OTEL_COLLECTOR_PORT_HTTP
- DD_SITE_PARAMETER=datadoghq.com
- DD_API_KEY=<xxxxxxxxxxxxxxx>And here is how my exporters:
datadog:
traces:
span_name_as_resource_name: true
trace_buffer: 500
hostname: "otel-collector-docker"
api:
site: ${env:DD_SITE_PARAMETER}
key: ${env:DD_API_KEY}
processors:
resource:
attributes:
- key: deployment.environment
value: "otel"
action: upsert
connectors:
datadog/connector:
traces:
span_name_as_resource_name: true
service:
pipelines:
traces:
processors: [resource, batch]
exporters: [otlp, debug, spanmetrics, datadog, datadog/connector]
metrics:
receivers: [docker_stats, httpcheck/frontendproxy, otlp, prometheus, redis, spanmetrics, datadog/connector]
processors: [resource, batch]
exporters: [otlphttp/prometheus, debug, datadog]
logs:
processors: [resource, batch]
exporters: [opensearch, debug, datadog] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
hey @tanvir362 👋🏽 Juliano here, a maintainer of the Demo. There are a couple of things here that we need to discuss 😅 First and more important, please rotate your Also, this PR should be opened on the Datadog fork, but I work at Datadog, and I can help you out. I'm not sure what do you mean by Just one thing to also highlight, is that |
Beta Was this translation helpful? Give feedback.
hey @tanvir362 👋🏽
Juliano here, a maintainer of the Demo.
There are a couple of things here that we need to discuss 😅
First and more important, please rotate your
DD_API_KEYas you have just shared it publicly.Also, this PR should be opened on the Datadog fork, but I work at Datadog, and I can help you out.
I'm not sure what do you mean by
checkout API error.Could you elaborate a bit further?
Just one thing to also highlight, is that
checkoutservice doesn't have OTLP logs in place yet, meaning that this service is not sending it's logs anywhere ATM.We are keeping track of the implementation on this issue: #1472