Skip to content

Conversation

aabmass
Copy link
Member

@aabmass aabmass commented Sep 26, 2025

Description

The schemas for GenAI types are already arrays. It's much more efficient to parse jsonlines than an array and it is a commonly used for https://jsonlines.org/.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Added lots of new test cases

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

use cases.
"""

OTEL_INSTRUMENTATION_GENAI_UPLOAD_FORMAT = (
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also considered making the existing environment variable support a python format string and checking the file extension insetad e.g.

OTEL_INSTRUMENTATION_GENAI_UPLOAD_FORMAT="s3://foo/bar/{uuid}_{type}.jsonl"

but figured it's maybe too complicated. wdyt?

@aabmass aabmass marked this pull request as ready for review September 26, 2025 22:07
@aabmass aabmass requested a review from a team as a code owner September 26, 2025 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants