Anaconda OpenTelemetry for Typescript
    Preparing search index...

    Function changeSignalConnection

    • Function used to change the endpoint or authorization token or both for a signal type.

      Parameters

      • signal: Signal

        Either 'metrics' or 'tracing' to select which connection to change.

      • endpoint: URL | undefined

        The optional new endpoint for the specific signal.

      • authToken: string | undefined = undefined

        The optional new authorization token for the connection to use.

      • certFile: string | undefined = undefined

        The optional certificate file for mTLS.

      Returns Promise<boolean>

      • true if successful, false if it failed.
      • Should be called from an async method with await, if not consequences are:
        • If changing endpoints data around the change MAY end up in either endpoint or both.
        • Order of other telemetry may be different than expected.
      • This method does not throw.