Skip to content

feat(semconv): add span-kind-independent image attributes - #3654

Merged
mikeldking merged 5 commits into
Arize-ai:mainfrom
satyadevai:3422-span-kind-independent-image-attributes
Sep 11, 2026
Merged

mikeldking merged 5 commits into
Arize-ai:mainfrom
satyadevai:3422-span-kind-independent-image-attributes

Conversation

@satyadevai

Copy link
Copy Markdown
Contributor

Resolves the part of #3422

@satyadevai
satyadevai force-pushed the 3422-span-kind-independent-image-attributes branch 6 times, most recently from a59f58c to bb4b393 Compare September 2, 2026 07:00
@satyadevai
satyadevai marked this pull request as ready for review September 2, 2026 12:09
@satyadevai
satyadevai requested review from a team as code owners September 2, 2026 12:09
@satyadevai
satyadevai force-pushed the 3422-span-kind-independent-image-attributes branch from 8c1ac43 to 9522706 Compare September 8, 2026 06:53
@satyadevai

Copy link
Copy Markdown
Contributor Author

Hi @mikeldking ,

I’ve opened a separate PR for the openinference-instrumentation changes to separate the semantic conventions dependency from the OpenInference instrumentation package:

#3695

Once the semantic conventions changes are merged, I’ll rerun the CI jobs, and this PR should be ready to merge.

@satyadevai
satyadevai force-pushed the 3422-span-kind-independent-image-attributes branch from 9522706 to a9f676e Compare September 9, 2026 17:32
Comment thread spec/multimodal_attributes.md Outdated
image or its base64 encoding. That is an absolute URI (`https://`, `http://`, `s3://`, `gs://`, or
a provider-specific scheme), a base64 data URI (`data:<mime>;base64,<payload>`), or a bare base64
payload.
- There is no separate MIME attribute: the media type is read from the value itself — the `data:`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nix

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removed in cefb931.

Comment thread spec/multimodal_attributes.md Outdated
URI prefix, or the file extension of a reference URI. Producers SHOULD therefore emit a data URI
in preference to a bare base64 payload, and SHOULD keep a recognizable extension on a reference
URI, so that a consumer can identify the bytes.
- These attributes are additive, not a replacement for message content. An `LLM` span that already

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't understand this statement

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reworded in cefb931. The point is just: an LLM span already has its images inside the messages, so it should not duplicate them under input.images / output.images.

Comment thread spec/multimodal_attributes.md Outdated
(see [External Storage for Large Media](#external-storage-for-large-media)). Hiding takes
precedence: a hidden image is never uploaded.

The size limit and externalization recognize base64 by the `data:` prefix, so a bare base64 payload

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This goes without saying?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removed in cefb931.

@mikeldking
mikeldking enabled auto-merge (rebase) September 11, 2026 16:56
auto-merge was automatically disabled September 11, 2026 17:16

Rebase failed

satyadevai and others added 5 commits September 11, 2026 11:23
Address review: drop the MIME-type bullet and the bare-base64 note, and
reword the remaining semantics in plain language.
Reword the Go, Java, and TypeScript doc comments and two spec lines
in plain language; fix the JS namespace helper docstring, which
described the wrong thing.
@mikeldking
mikeldking force-pushed the 3422-span-kind-independent-image-attributes branch from 5fba549 to 562605f Compare September 11, 2026 17:25
@mikeldking
mikeldking merged commit 1049e83 into Arize-ai:main Sep 11, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants