Skip to content

Allow Global Access Pattern for OpenTelemetryRum #1585

@RiyazurRazak

Description

@RiyazurRazak

Currently, the OpenTelemetry instance is initialized and accessed via a static reference in MainApplication (as shown in the demo application). This approach introduces tight coupling to the application entry point and requires manual wiring for global access.

Would it be possible to introduce a pattern similar to GlobalOpenTelemetry (from Otel-java), or expose a globally accessible object within OpenTelemetryRum, allowing developers to access the instance directly throughout the application without relying on a static reference in MainApplication?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions