Skip to content

Commit

Permalink
tests: Remove version from OpenAI snapshots child spans (#2929)
Browse files Browse the repository at this point in the history
* tests: Remove version from OpenAI snapshots child spans

* tests: Remove version from one OpenAI metric snapshot

* tests: Remove version from one OpenAI snapshot

* tests: Remove version from one OpenAI logs snapshot
  • Loading branch information
PROFeNoM authored Nov 6, 2024
1 parent a1ec6f8 commit 0e77db0
Show file tree
Hide file tree
Showing 43 changed files with 48 additions and 90 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"message":"sampled listModels","status":"info","timestamp":"2024-07-18T07:58:56.301000+00:00","env":"test","version":"1.0","service":"openai","openai.request.method":"GET","openai.request.endpoint":"\/v1\/models","openai.organization.name":"org-1234","openai.user.api_key":"sk-...9d5d","dd.trace_id":"7579939180383610820","dd.span_id":"7579939180383610820"}
{"message":"sampled listModels","status":"info","timestamp":"2024-07-18T07:58:56.301000+00:00","env":"test","service":"openai","openai.request.method":"GET","openai.request.endpoint":"\/v1\/models","openai.organization.name":"org-1234","openai.user.api_key":"sk-...9d5d","dd.trace_id":"7579939180383610820","dd.span_id":"7579939180383610820"}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openai.request.duration:205208|d|#env:test,service:openai,version:1.0,env:test,service:openai,version:1.0,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
openai.ratelimit.requests:3000|g|#env:test,service:openai,version:1.0,env:test,service:openai,version:1.0,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
openai.ratelimit.tokens:250000|g|#env:test,service:openai,version:1.0,env:test,service:openai,version:1.0,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
openai.ratelimit.remaining.requests:2999|g|#env:test,service:openai,version:1.0,env:test,service:openai,version:1.0,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
openai.ratelimit.remaining.tokens:249989|g|#env:test,service:openai,version:1.0,env:test,service:openai,version:1.0,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
openai.request.duration:205208|d|#env:test,service:openai,env:test,service:openai,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
openai.ratelimit.requests:3000|g|#env:test,service:openai,env:test,service:openai,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
openai.ratelimit.tokens:250000|g|#env:test,service:openai,env:test,service:openai,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
openai.ratelimit.remaining.requests:2999|g|#env:test,service:openai,env:test,service:openai,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
openai.ratelimit.remaining.tokens:249989|g|#env:test,service:openai,env:test,service:openai,openai.organization.name:org-1234,openai.user.api_key:sk-...9d5d,openai.request.endpoint:/v1/models
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/fine-tunes/ftjob-AF1WoRqd3aJAHsqc9NY7iL8F/cancel?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/chat/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/chat/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/chat/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/chat/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/chat/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/chat/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"http.status_code": "404",
"http.url": "https://api.openai.com/v1/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/embeddings?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/embeddings?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/files?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/images/generations?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/images/edits?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/images/variations?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/moderations?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/audio/transcriptions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/audio/transcriptions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/audio/transcriptions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/audio/translations?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/audio/translations?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/audio/translations?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/files/file-XjGxS3KTG0uNmNOK362iJua3?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/models/curie:ft-acmeco-2021-03-03-21-44-20?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/files/file-XjGxS3KTG0uNmNOK362iJua3/content?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/files?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/fine-tunes/ftjob-AF1WoRqd3aJAHsqc9NY7iL8F/events?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/fine-tunes/ft-MaoEAULREoazpupm8uB7qoIl/events?stream=true?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/models?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"http.status_code": "401",
"http.url": "https://api.openai.com/v1/models?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"http.status_code": "429",
"http.url": "https://api.openai.com/v1/models?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/models?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/models?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
"openai.response.object": "list",
"openai.user.api_key": "sk-...9d5d",
"runtime-id": "0a784015-fb27-4c52-9df3-dedf7130fbcb",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
},
"metrics": {
"_dd.agent_psr": 1,
Expand All @@ -46,7 +45,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/models?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/files/file-XjGxS3KTG0uNmNOK362iJua3?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/fine_tuning/jobs/ftjob-AF1WoRqd3aJAHsqc9NY7iL8F?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/models/da-vince?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"http.status_code": "200",
"http.url": "https://api.openai.com/v1/completions?foo=bar",
"network.destination.name": "api.openai.com",
"span.kind": "client",
"version": "1.0"
"span.kind": "client"
}
}]]

0 comments on commit 0e77db0

Please sign in to comment.