Skip to content

Commit cc5d604

Browse files
committed
scrub leaked cookies
1 parent 30eed05 commit cc5d604

11 files changed

+364
-254
lines changed

instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/cassettes/test_async_chat_completion_404.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ interactions:
1515
- application/json
1616
accept-encoding:
1717
- gzip, deflate
18+
authorization:
19+
- Bearer test_openai_api_key
1820
connection:
1921
- keep-alive
2022
content-length:
@@ -56,13 +58,13 @@ interactions:
5658
CF-Cache-Status:
5759
- DYNAMIC
5860
CF-RAY:
59-
- 8e0e20160ec6e17f-MRS
61+
- 8e1a80827a861852-MRS
6062
Connection:
6163
- keep-alive
6264
Content-Type:
6365
- application/json; charset=utf-8
6466
Date:
65-
- Mon, 11 Nov 2024 12:01:02 GMT
67+
- Wed, 13 Nov 2024 00:04:01 GMT
6668
Server:
6769
- cloudflare
6870
Set-Cookie: test_set_cookie
@@ -74,13 +76,13 @@ interactions:
7476
- h3=":443"; ma=86400
7577
content-length:
7678
- '231'
77-
openai-organization: test_organization
79+
openai-organization: test_openai_org_id
7880
strict-transport-security:
7981
- max-age=31536000; includeSubDomains; preload
8082
vary:
8183
- Origin
8284
x-request-id:
83-
- req_93d359c0eeba1f2be7308d9132e82bf5
85+
- req_5cf06a7fabd45ebe21ee38c14c5b2f76
8486
status:
8587
code: 404
8688
message: Not Found

instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/cassettes/test_async_chat_completion_extra_params.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ interactions:
2020
- application/json
2121
accept-encoding:
2222
- gzip, deflate
23+
authorization:
24+
- Bearer test_openai_api_key
2325
connection:
2426
- keep-alive
2527
content-length:
@@ -50,9 +52,9 @@ interactions:
5052
body:
5153
string: |-
5254
{
53-
"id": "chatcmpl-ASNOJZk6WBJTYWmACy5zBiYnkvXAw",
55+
"id": "chatcmpl-ASv9WMTAMZY4O1EImv3csZa6Ch7KI",
5456
"object": "chat.completion",
55-
"created": 1731326463,
57+
"created": 1731456242,
5658
"model": "gpt-4o-mini-2024-07-18",
5759
"choices": [
5860
{
@@ -88,13 +90,13 @@ interactions:
8890
CF-Cache-Status:
8991
- DYNAMIC
9092
CF-RAY:
91-
- 8e0e20191e7670e7-MRS
93+
- 8e1a8088f867e167-MRS
9294
Connection:
9395
- keep-alive
9496
Content-Type:
9597
- application/json
9698
Date:
97-
- Mon, 11 Nov 2024 12:01:03 GMT
99+
- Wed, 13 Nov 2024 00:04:02 GMT
98100
Server:
99101
- cloudflare
100102
Set-Cookie: test_set_cookie
@@ -108,9 +110,9 @@ interactions:
108110
- h3=":443"; ma=86400
109111
content-length:
110112
- '825'
111-
openai-organization: test_organization
113+
openai-organization: test_openai_org_id
112114
openai-processing-ms:
113-
- '483'
115+
- '488'
114116
openai-version:
115117
- '2020-10-01'
116118
strict-transport-security:
@@ -128,7 +130,7 @@ interactions:
128130
x-ratelimit-reset-tokens:
129131
- 0s
130132
x-request-id:
131-
- req_bbcd55fb3044f058ea9f9ae8a388698d
133+
- req_6df08d6267415e8f5db3628a6757edad
132134
status:
133135
code: 200
134136
message: OK

instrumentation-genai/opentelemetry-instrumentation-openai-v2/tests/cassettes/test_async_chat_completion_multiple_choices.yaml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ interactions:
1717
- application/json
1818
accept-encoding:
1919
- gzip, deflate
20+
authorization:
21+
- Bearer test_openai_api_key
2022
connection:
2123
- keep-alive
2224
content-length:
@@ -47,16 +49,16 @@ interactions:
4749
body:
4850
string: |-
4951
{
50-
"id": "chatcmpl-ASNOJmzXWHqTArL7xMAtIJhIuu46p",
52+
"id": "chatcmpl-ASv9XLlMmT7H3cf50dNTesHDBDwX5",
5153
"object": "chat.completion",
52-
"created": 1731326463,
54+
"created": 1731456243,
5355
"model": "gpt-4o-mini-2024-07-18",
5456
"choices": [
5557
{
5658
"index": 0,
5759
"message": {
5860
"role": "assistant",
59-
"content": "This is a test! How can I assist you further?",
61+
"content": "This is a test.",
6062
"refusal": null
6163
},
6264
"logprobs": null,
@@ -66,7 +68,7 @@ interactions:
6668
"index": 1,
6769
"message": {
6870
"role": "assistant",
69-
"content": "This is a test. How can I assist you further?",
71+
"content": "This is a test.",
7072
"refusal": null
7173
},
7274
"logprobs": null,
@@ -75,8 +77,8 @@ interactions:
7577
],
7678
"usage": {
7779
"prompt_tokens": 12,
78-
"completion_tokens": 24,
79-
"total_tokens": 36,
80+
"completion_tokens": 10,
81+
"total_tokens": 22,
8082
"prompt_tokens_details": {
8183
"cached_tokens": 0,
8284
"audio_tokens": 0
@@ -94,13 +96,13 @@ interactions:
9496
CF-Cache-Status:
9597
- DYNAMIC
9698
CF-RAY:
97-
- 8e0e201e3de30771-MRS
99+
- 8e1a808f6d8e0d8b-MRS
98100
Connection:
99101
- keep-alive
100102
Content-Type:
101103
- application/json
102104
Date:
103-
- Mon, 11 Nov 2024 12:01:04 GMT
105+
- Wed, 13 Nov 2024 00:04:04 GMT
104106
Server:
105107
- cloudflare
106108
Set-Cookie: test_set_cookie
@@ -113,10 +115,10 @@ interactions:
113115
alt-svc:
114116
- h3=":443"; ma=86400
115117
content-length:
116-
- '1030'
117-
openai-organization: test_organization
118+
- '970'
119+
openai-organization: test_openai_org_id
118120
openai-processing-ms:
119-
- '373'
121+
- '306'
120122
openai-version:
121123
- '2020-10-01'
122124
strict-transport-security:
@@ -134,7 +136,7 @@ interactions:
134136
x-ratelimit-reset-tokens:
135137
- 0s
136138
x-request-id:
137-
- req_d1f29830c9ae2a48e896be67a1edcfd6
139+
- req_1317908e0f9b73276b57d4e171c533ea
138140
status:
139141
code: 200
140142
message: OK

0 commit comments

Comments
 (0)