Skip to content

[FEATURE]: Passing sessionId argument of span from ai-sdk #8654

Description

@horita-yuya

Package Name

llmobs

Package Version(s)

No response

Describe the feature you'd like

Now, the arguments of span is registered here.

https://github.com/DataDog/dd-trace-js/blob/master/packages/dd-trace/src/llmobs/plugins/base.js#L49

The registeredOptions is created here.

return { kind, name: getLlmObsSpanName(operation, ctx.attributes['ai.telemetry.functionId']) }

It seems only "name" argument is generated from ai-sdk telemetry.

Is it possible to create "sessionId" argument from it?

The "sessionId" I'm describing is here. https://docs.datadoghq.com/llm_observability/instrumentation/sdk/?tab=nodejs#llm-calls

Is your feature request related to a problem?

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions