Skip to content

create-service-client-constructor.ts is not lazy loaded #5842

@r34son

Description

@r34son

What happened?

Steps to Reproduce

Expected Result

Actual Result

Looking at @pichlermarc comment on https://github.com/open-telemetry/opentelemetry-js/pull/4432/files#diff-421320e18f3235be2a4514180a4c8b1405c0f3a53fa2ff84fbc98ce4f0aaa4b8R17

Image

https://github.com/open-telemetry/opentelemetry-js/blob/v2.0.1/experimental/packages/otlp-grpc-exporter-base/src/create-service-client-constructor.ts should be lazy loaded. But somehow it goes into compilation on buildtime:

Image

I quess it is some bundler heuristics? (webpack in my case)

Additional Details

OpenTelemetry Setup Code

package.json

Relevant log output

Operating System and Version

No response

Runtime and Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions