Skip to content

[BUG]: llmobs options are unusable due to internal type references #4134

@mslynch

Description

@mslynch

Tracer Version(s)

2.4.0

Go Version(s)

go version go1.25.4 darwin/arm64

Bug Report

The *Option types used in github.com/DataDog/dd-trace-go/v2/llmobs, which are referenced in various public-facing functions, are unusable due to references to types in the internal internal/illmobs package.

The affected types are:

Reproduction Code

package main

import (
	"context"
	"github.com/DataDog/dd-trace-go/v2/llmobs"
	illmobs "github.com/DataDog/dd-trace-go/v2/internal/llmobs"
)

func main() {
	llmobs.StartLLMSpan(context.TODO(), "foo", func(opts *illmobs.StartSpanConfig) {
		opts.MLApp = "bar"
	})
}

Error Logs

results in compilation error: use of internal package github.com/DataDog/dd-trace-go/v2/internal/llmobs not allowed

Go Env Output

No response

Metadata

Metadata

Assignees

Labels

bugunintended behavior that has to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions