Skip to content

Using __add_tracing_headers with React Native SDK doesnt add the sessions to each request. #3196

@theobouwman

Description

@theobouwman

Bug description

Using https://posthog.com/docs/llm-analytics/link-session-replay#implementation with React Native SDK doesnt add the sessions to each request.

How to reproduce

<PostHogProvider apiKey="...." options={{
                        host: "https://eu.posthog.com",
                        __add_tracing_headers: ['localhost', 'localhost:8000', '127.0.0.1', '127.0.0.1:8000'],
...

Related sub-libraries

  • All of them
  • posthog-js (web)
  • posthog-js-lite (web lite)
  • posthog-node
  • posthog-react-native
  • @posthog/react
  • @posthog/ai
  • @posthog/convex
  • @posthog/nextjs-config
  • @posthog/nuxt
  • @posthog/rollup-plugin
  • @posthog/webpack-plugin

Additional context

Thank you for your bug report – we love squashing them!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingllmoThis issue is related to LLM Observability.react-nativeteam/llm-analyticsLLM Analytics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions