From 08fb7815ef21ee26d2c90fe8ee7a463a71b1049a Mon Sep 17 00:00:00 2001 From: Alexandre Choura Date: Wed, 6 Nov 2024 10:59:30 +0100 Subject: [PATCH 1/4] tests: Remove version from OpenAI snapshots child spans --- ...ntegrations.open_ai.open_ai_test.test_cancel_fine_tune.json | 3 +-- ...tions.open_ai.open_ai_test.test_create_chat_completion.json | 3 +-- ...pen_ai.open_ai_test.test_create_chat_completion_stream.json | 3 +-- ..._ai_test.test_create_chat_completion_stream_with_error.json | 3 +-- ...pen_ai_test.test_create_chat_completion_with_functions.json | 3 +-- ...n_ai_test.test_create_chat_completion_with_image_input.json | 3 +-- ...i_test.test_create_chat_completion_with_multiple_roles.json | 3 +-- ...tegrations.open_ai.open_ai_test.test_create_completion.json | 3 +-- ...ons.open_ai.open_ai_test.test_create_completion_stream.json | 3 +-- ...t.test_create_completions_with_multiple_error_messages.json | 3 +-- ...ntegrations.open_ai.open_ai_test.test_create_embedding.json | 3 +-- ...pen_ai_test.test_create_embedding_with_multiple_inputs.json | 3 +-- ...sts.integrations.open_ai.open_ai_test.test_create_file.json | 3 +-- ...ts.integrations.open_ai.open_ai_test.test_create_image.json | 3 +-- ...tegrations.open_ai.open_ai_test.test_create_image_edit.json | 3 +-- ...tions.open_ai.open_ai_test.test_create_image_variation.json | 3 +-- ...tegrations.open_ai.open_ai_test.test_create_moderation.json | 3 +-- ...open_ai.open_ai_test.test_create_transcription_to_json.json | 3 +-- ...open_ai.open_ai_test.test_create_transcription_to_text.json | 3 +-- ...open_ai_test.test_create_transcription_to_verbose_json.json | 3 +-- ...s.open_ai.open_ai_test.test_create_translation_to_json.json | 3 +-- ...s.open_ai.open_ai_test.test_create_translation_to_text.json | 3 +-- ...i.open_ai_test.test_create_translation_to_verbose_json.json | 3 +-- ...sts.integrations.open_ai.open_ai_test.test_delete_file.json | 3 +-- ...ts.integrations.open_ai.open_ai_test.test_delete_model.json | 3 +-- ...s.integrations.open_ai.open_ai_test.test_download_file.json | 3 +-- ...ests.integrations.open_ai.open_ai_test.test_list_files.json | 3 +-- ...ations.open_ai.open_ai_test.test_list_fine_tune_events.json | 3 +-- ...open_ai.open_ai_test.test_list_fine_tune_events_stream.json | 3 +-- ...sts.integrations.open_ai.open_ai_test.test_list_models.json | 3 +-- ...tions.open_ai.open_ai_test.test_list_models_with_error.json | 3 +-- ..._ai.open_ai_test.test_list_models_with_null_error_type.json | 3 +-- ...ai.open_ai_test.test_log_prompt_completion_sample_rate.json | 3 +-- ...s.integrations.open_ai.open_ai_test.test_logs_disabled.json | 3 +-- ...ntegrations.open_ai.open_ai_test.test_metrics_disabled.json | 3 +-- ...integrations.open_ai.open_ai_test.test_open_ai_service.json | 3 +-- ...s.integrations.open_ai.open_ai_test.test_retrieve_file.json | 3 +-- ...egrations.open_ai.open_ai_test.test_retrieve_fine_tune.json | 3 +-- ....integrations.open_ai.open_ai_test.test_retrieve_model.json | 3 +-- ...integrations.open_ai.open_ai_test.test_span_char_limit.json | 3 +-- ...i.open_ai_test.test_span_prompt_completion_sample_rate.json | 3 +-- 41 files changed, 41 insertions(+), 82 deletions(-) diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_cancel_fine_tune.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_cancel_fine_tune.json index b8d8cc6998..136e6937fb 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_cancel_fine_tune.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_cancel_fine_tune.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion.json index 63bb9fc77b..72c9094bcb 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_stream.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_stream.json index 8fce4d8bbb..b6e7c27d60 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_stream.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_stream.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_stream_with_error.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_stream_with_error.json index 948c7b2782..d184ae3142 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_stream_with_error.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_stream_with_error.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_functions.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_functions.json index ded6a74cb3..518404b54c 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_functions.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_functions.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_image_input.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_image_input.json index c91a34df88..63f6eb739f 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_image_input.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_image_input.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_multiple_roles.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_multiple_roles.json index 3b616a32f3..09c532c79a 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_multiple_roles.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_chat_completion_with_multiple_roles.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completion.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completion.json index 2597592cc7..7ec60a75d4 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completion.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completion.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completion_stream.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completion_stream.json index 2cb0e09ae9..ea4741afd8 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completion_stream.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completion_stream.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completions_with_multiple_error_messages.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completions_with_multiple_error_messages.json index e5f86487cd..2257b15781 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completions_with_multiple_error_messages.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_completions_with_multiple_error_messages.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_embedding.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_embedding.json index 94ba4f0d53..46ff1160b2 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_embedding.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_embedding.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_embedding_with_multiple_inputs.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_embedding_with_multiple_inputs.json index 668232b82f..3c3bc2447b 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_embedding_with_multiple_inputs.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_embedding_with_multiple_inputs.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_file.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_file.json index a42bbeeed1..684ac5cfa7 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_file.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_file.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image.json index 86d1a298d0..a6361491f3 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image_edit.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image_edit.json index 13dd799139..086211b07d 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image_edit.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image_edit.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image_variation.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image_variation.json index 9b852a66a9..23afc4dd12 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image_variation.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_image_variation.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_moderation.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_moderation.json index 55689db1ad..be4923056e 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_moderation.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_moderation.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_json.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_json.json index 484aae9ad0..96fe23a901 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_json.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_json.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_text.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_text.json index cc8f0d75bf..70fbd3e6c4 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_text.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_text.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_verbose_json.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_verbose_json.json index 2c682f2f5e..34653aeff1 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_verbose_json.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_transcription_to_verbose_json.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_json.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_json.json index f7ebf8cae7..b380eb022b 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_json.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_json.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_text.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_text.json index 6e45609fab..0e772afec9 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_text.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_text.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_verbose_json.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_verbose_json.json index 7188e4127a..8d01bd44e9 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_verbose_json.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_create_translation_to_verbose_json.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_delete_file.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_delete_file.json index e1c000068a..cd21ae389d 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_delete_file.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_delete_file.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_delete_model.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_delete_model.json index ed3269246a..b952a142c8 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_delete_model.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_delete_model.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_download_file.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_download_file.json index 565b413a99..e387894582 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_download_file.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_download_file.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_files.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_files.json index a9e8b9339a..c1ac253839 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_files.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_files.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_fine_tune_events.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_fine_tune_events.json index b7db554516..a01d3f6b9a 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_fine_tune_events.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_fine_tune_events.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_fine_tune_events_stream.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_fine_tune_events_stream.json index ddbb0eea45..b72d516465 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_fine_tune_events_stream.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_fine_tune_events_stream.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models.json index 39dccfd9c1..494a3ae2af 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models_with_error.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models_with_error.json index c76b32e0a0..7663d968df 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models_with_error.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models_with_error.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models_with_null_error_type.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models_with_null_error_type.json index 891c75a521..293a32a64e 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models_with_null_error_type.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_list_models_with_null_error_type.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_log_prompt_completion_sample_rate.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_log_prompt_completion_sample_rate.json index 0931fb64fd..b20195f451 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_log_prompt_completion_sample_rate.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_log_prompt_completion_sample_rate.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_logs_disabled.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_logs_disabled.json index b0837e96a2..39588732c0 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_logs_disabled.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_logs_disabled.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_metrics_disabled.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_metrics_disabled.json index 488ab56da7..fd99245b57 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_metrics_disabled.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_metrics_disabled.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_open_ai_service.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_open_ai_service.json index d691df3984..502b39bd12 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_open_ai_service.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_open_ai_service.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_file.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_file.json index a193464263..2192100b9b 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_file.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_file.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_fine_tune.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_fine_tune.json index a6b5d56d56..057715cb72 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_fine_tune.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_fine_tune.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_model.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_model.json index 27742d0965..4b5e96fed6 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_model.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_retrieve_model.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_span_char_limit.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_span_char_limit.json index 869da8612e..11d9a2da1c 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_span_char_limit.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_span_char_limit.json @@ -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" } }]] diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_span_prompt_completion_sample_rate.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_span_prompt_completion_sample_rate.json index b0eace0670..1bd498affa 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_span_prompt_completion_sample_rate.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_span_prompt_completion_sample_rate.json @@ -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" } }]] From 840cc1c60049c1559ccbb0cecf31b945bb92b8de Mon Sep 17 00:00:00 2001 From: Alexandre Choura Date: Wed, 6 Nov 2024 11:26:06 +0100 Subject: [PATCH 2/4] tests: Remove version from one OpenAI metric snapshot --- ...tions.open_ai.open_ai_test.test_open_ai_service.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/snapshots/metrics/tests.integrations.open_ai.open_ai_test.test_open_ai_service.txt b/tests/snapshots/metrics/tests.integrations.open_ai.open_ai_test.test_open_ai_service.txt index 13f79afb8c..ea00470453 100644 --- a/tests/snapshots/metrics/tests.integrations.open_ai.open_ai_test.test_open_ai_service.txt +++ b/tests/snapshots/metrics/tests.integrations.open_ai.open_ai_test.test_open_ai_service.txt @@ -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 From 88ca0dc82101db20b6e8f46adbafb50dd088f03a Mon Sep 17 00:00:00 2001 From: Alexandre Choura Date: Wed, 6 Nov 2024 11:43:31 +0100 Subject: [PATCH 3/4] tests: Remove version from one OpenAI snapshot --- ...integrations.open_ai.open_ai_test.test_open_ai_service.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_open_ai_service.json b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_open_ai_service.json index 502b39bd12..c67f625ba9 100644 --- a/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_open_ai_service.json +++ b/tests/snapshots/tests.integrations.open_ai.open_ai_test.test_open_ai_service.json @@ -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, From 043f4596fea606a6bb0df0fdea6b6c76a80b4e90 Mon Sep 17 00:00:00 2001 From: Alexandre Choura Date: Wed, 6 Nov 2024 11:52:48 +0100 Subject: [PATCH 4/4] tests: Remove version from one OpenAI logs snapshot --- ...s.integrations.open_ai.open_ai_test.test_open_ai_service.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/snapshots/logs/tests.integrations.open_ai.open_ai_test.test_open_ai_service.txt b/tests/snapshots/logs/tests.integrations.open_ai.open_ai_test.test_open_ai_service.txt index d79ca1a1c9..a8caede28c 100644 --- a/tests/snapshots/logs/tests.integrations.open_ai.open_ai_test.test_open_ai_service.txt +++ b/tests/snapshots/logs/tests.integrations.open_ai.open_ai_test.test_open_ai_service.txt @@ -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"} \ No newline at end of file +{"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"}