Skip to content

feat: modify the SDK initialization options to allow adding Exporter headers#19

Open
devlasbe wants to merge 1 commit into
callstack:mainfrom
devlasbe:feat/expoter-header-option
Open

feat: modify the SDK initialization options to allow adding Exporter headers#19
devlasbe wants to merge 1 commit into
callstack:mainfrom
devlasbe:feat/expoter-header-option

Conversation

@devlasbe

@devlasbe devlasbe commented Aug 7, 2025

Copy link
Copy Markdown

Summary

modify the SDK initialization options to allow adding Exporter headers.

I added a header option to authenticate with a monitoring cloud system that follows the OpenTelemetry standard.

Test plan

After building the package, I added headers to the SDK initialization options in the example app and verified them in the Network tab of the web browser.

const sdk = openTelemetrySDK({
  // Use '10.0.2.2' instead of 'localhost' on Android emulators
  url: "http://localhost:4318",
  headers: {
    Authorization: "Test Access Token", // ADD
  },
  debug: true,
  name: "MyExampleApp",
  version: "1.0.0-alpha",
  environment: "development",
  features: {
    session: {
      getSessionId: () => "custom-session-id",
    },
  },
});
image

@devlasbe

devlasbe commented Aug 8, 2025

Copy link
Copy Markdown
Author

@adhorodyski review please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant