Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ddapm_test_agent/vcr_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"azure-openai": "https://dd.openai.azure.com/",
"deepseek": "https://api.deepseek.com/",
"anthropic": "https://api.anthropic.com/",
"datadog": "https://api.datadoghq.com/",
}

NORMALIZERS = [
Expand Down Expand Up @@ -59,7 +60,14 @@ def get_vcr(subdirectory: str, vcr_cassettes_directory: str) -> vcr.VCR:
cassette_library_dir=cassette_dir,
record_mode="once",
match_on=["path", "method"],
filter_headers=["authorization", "OpenAI-Organization", "api-key", "x-api-key"],
filter_headers=[
"authorization",
"OpenAI-Organization",
"api-key",
"x-api-key",
"dd-api-key",
"dd-application-key",
],
)


Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/add-datadog-proxy-7e2e608c101a564b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
other:
- |
Add datadog vcr cassette support.
Loading