Skip to content

[bug] Java SDK for conventions brings extra, unnecessary dependencies #2179

@ThomasVitale

Description

@ThomasVitale

Describe the bug
The openinference-semantic-conventions Java module doesn't use any external library since it only defines Java enums and constants.

However, the library itself is configured to bring the OpenTelemetry API as a transitive dependency, and Jackson Databind as a runtime dependency. Neither of them are actually used. And the first one can create conflicts with other libraries defining which OpenTelemetry API version to use.

To Reproduce
Check the build.gradle file.

Expected behavior
I expect the openinference-semantic-conventions library to have zero transitive dependencies.

Workarounds
To avoid any problem, it's currently necessary to explicitly exclude the transitive dependencies:

implementation("com.arize:openinference-semantic-conventions") {
        transitive = false
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions