Describe the bug
The documentation here says you can override the api endpoint with this env var, but doing so results in the regular dd site api being used. DD_SITE wont work for this case since it still appends api. in front of whatever you put.
A clear and concise description of what the bug is.
To Reproduce
PUP_MOCK_SERVER=$SERVER pup logs search --query="service:test" --from="15m"
Will work for using the test server
DD_HOST=$SERVER pup logs search --query="service:test" --from="15m"
will not.
The mock server env var names suggests it is not intended for this usage but perhaps that is wrong, clarification in the docs would help there if so
Expected behavior
The ability to override the datadog api endpoint so we can route dd api traffic to our proxy. The HTTPS_PROXY values require a more robust setup due to redirecting auth.
Environment
- OS: macos
- Pup version: pup 0.65.4
- Go version: go version go1.26.1 darwin/arm64
- Authentication method: oauth2
Command output
N/A
Additional context
We want to route datadog requests through our own api gateway that directs some requests to a lambda. This setup works but pup is not sending traffic to it without using the mock server env var. docs suggest DD_HOST should be used but that doesn't work
Describe the bug
The documentation here says you can override the api endpoint with this env var, but doing so results in the regular dd site api being used. DD_SITE wont work for this case since it still appends api. in front of whatever you put.
A clear and concise description of what the bug is.
To Reproduce
PUP_MOCK_SERVER=$SERVER pup logs search --query="service:test" --from="15m"Will work for using the test server
DD_HOST=$SERVER pup logs search --query="service:test" --from="15m"will not.
The mock server env var names suggests it is not intended for this usage but perhaps that is wrong, clarification in the docs would help there if so
Expected behavior
The ability to override the datadog api endpoint so we can route dd api traffic to our proxy. The HTTPS_PROXY values require a more robust setup due to redirecting auth.
Environment
Command output
N/A
Additional context
We want to route datadog requests through our own api gateway that directs some requests to a lambda. This setup works but pup is not sending traffic to it without using the mock server env var. docs suggest DD_HOST should be used but that doesn't work