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', 'tracing', or 'logging' to select which connection to change.

      • args: { authToken?: string; certFile?: string; endpoint?: URL; userId?: string }

        Arguments object of possible connection changes. Must have at least one that is defined.

        • OptionalauthToken?: string

          The new authorization token for the connection to use.

        • OptionalcertFile?: string

          The certificate file for mTLS.

        • Optionalendpoint?: URL

          The new endpoint for the specific signal.

        • OptionaluserId?: string

          The new userId or 'undefined'.

      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.