Skip to content

Restructure agentops.semconv #905

@teocns

Description

@teocns

Context

agentops.semconv.span_attributes defines mixed span attributes with no clear separation of concerns.

On the other hand, it redefines GenAI attributes already defined in opentelemetry semconv standard:

from opentelemetry.semconv._incubating.attributes.gen_ai_attributes import (
    GEN_AI_RESPONSE_ID,
    GEN_AI_REQUEST_ENCODING_FORMATS,
    ...
)

Proposal

  • To follow the opentelelemetry package conventions, i.e agentops.semconv.attributes.gen_ai_attributes (if we really need to backfill any missing semconv)

  • Since opentelemetry semconv standard is under development and prone to frequent changes, ensure to tighten dependencies ranges if required, or forward the declarations. This is not a hard ask especially if it turns out troublesome

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions