Skip to content

tsc errors when bumping to @opentelemetry/[email protected] #3240

@iamEAP

Description

@iamEAP

What version of OpenTelemetry are you using?

Attempting to update to @opentelemetry/[email protected]

What version of Node are you using?

v22.14.0

What did you do?

Bump to @opentelemetry/auto-instrumentation-node at ^0.67.0, then run tsc --skipLibCheck false --incremental false

What did you expect to see?

Project should compile without errors.

What did you see instead?

node_modules/@opentelemetry/instrumentation-openai/build/src/instrumentation.d.ts:3:86 - error TS2307: Cannot find module 'openai/resources/chat/completions' or its corresponding type declarations.

3 import type { ChatCompletion, ChatCompletionCreateParams, ChatCompletionChunk } from 'openai/resources/chat/completions';
                                                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@opentelemetry/instrumentation-openai/build/src/instrumentation.d.ts:4:69 - error TS2307: Cannot find module 'openai/resources/embeddings' or its corresponding type declarations.

4 import type { CreateEmbeddingResponse, EmbeddingCreateParams } from 'openai/resources/embeddings';
                                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 2 errors in the same file, starting at: node_modules/@opentelemetry/instrumentation-openai/build/src/instrumentation.d.ts:3

Additional context

If I run yarn why openai, I do not show that as installed in my project. Perhaps openai should be a dependency instead of a devDependency in @opentelemetry/instrumentation-openai?

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions