after switching to opal v0.8.3, opal will pop erro...
# opal
d
after switching to opal v0.8.3, opal will pop error like
2025-08-04T15:45:25.978352+0000 | ddtrace.internal.writer.writer          |ERROR  | failed to send, dropping 1 traces to intake at http://localhost:8126/v0.5/traces after 3 retries
👀 1
a
Hi @Dai Zhang, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
This error indicates that DataDog APM tracing is trying to send traces but failing to reach the DataDog agent at
localhost:8126
(1) . To resolve this, you have a few options: 1. ​*Disable DataDog APM if not needed:*​ Set
OPAL_ENABLE_DATADOG_APM=False
(2) or
ENABLE_DATADOG_APM=False
(1) 2. ​*If using DataDog APM, ensure the agent is running:*​ • The error shows traces are being sent to
http://localhost:8126/v0.5/traces
• Make sure your DataDog agent is running and accessible at that address 3. ​*Additional control via environment variable:*​ You can also disable APM using
DD_TRACE_ENABLED=false
Note that OPAL supports DataDog APM with ddtrace v3.0.0+ which requires Python 3.8+ (1) (2) . Since you're experiencing this after upgrading to OPAL v0.8.3, this appears to be a bug. Could you please provide the following information so our engineers can investigate: 1. Which Workspace / Project / Env are you using 2. What calls are you performing (as SDK code or CURL) 3. Which PDP version you are running 4. Any relevant logs from your PDP
To learn more, see the sources I considered: [[1] Monitoring OPAL](https://docs.opal.ac/tutorials/monitoring_opal) [[2] OPAL Configuration Guide | OPAL](https://docs.opal.ac/getting-started/configuration)
o
Hey @Dai Zhang What was the previous version you have used with OPAL ? Do you have a docker-compose setup to replicate that issue ? ( which doesn’t replicate with the previous version you have used )
d
@Omer Zuarets I am using 0.8.0 previously. For the one I met the problem, I have rebuild the image for the dockerhub official 0.8.3 one and installed a custom fetcher. I noticed when build the image, a warning pop and said that
opal_common 0.0.0 not match 0.8.3
, but it seems no bad effect on the final image, so i didn't care that. and finally, I found when set the environment variable of
DD_TRACE_ENABLED: false
, the error dismissed.
I am deploying opal-server using helm chart, a config looks like below:
server: broadcastPgsql: false broadcastUri: null dataConfigSources: config: entries: xxx extraEnv: TZ: "Asia/Shanghai" OPAL_BUNDLE_IGNORE: "docker/**,chart/**" LOG_DIAGNOSE: false DD_TRACE_ENABLED: false OPAL_AUTH_MASTER_TOKEN: xxx OPAL_AUTH_PUBLIC_KEY: ssh-rsa xxx OPAL_AUTH_PRIVATE_KEY: -----BEGIN RSA PRIVATE KEY-----xxx-----END RSA PRIVATE KEY----- OPAL_POLICY_REPO_WEBHOOK_SECRET: xxx OPAL_POLICY_REPO_WEBHOOK_PARAMS: '{"secret_header_name":"X-Hub-Signature","secret_type":"signature","secret_parsing_regex":"sha256=(.*)","event_header_name":"X-Event-Key","push_event_value":"repo:refs_changed"}' policyRepoClonePath: null policyRepoMainBranch: master policyRepoSshKey: -----BEGIN OPENSSH PRIVATE KEY-----xxx-----END OPENSSH PRIVATE KEY----- policyRepoUrl: ssh://git@xxx:7999/infra/opa-policy.git pollingInterval: 0 port: 7002 replicas: 1 uvicornWorkers: 1
you should remove
DD_TRACE_ENABLED
configuration
o
We’ll try to check that out, thanks for the additional information 🙌
d
@Omer Zuarets thanks for your help!
p
Hey, thanks for reaching out ! It seems our team is a little busy right now, a human will be with you within the next hour or so. In the meantime, can I help you ?