GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Inject meta tags in Tracing-without-Performance-mode · Issue #8520 · getsentry/sentry-javascript

Inject meta tags in Tracing-without-Performance-mode  #8520

New issue
Copy link
New issue
Copy link
Closed
Closed
Inject meta tags in Tracing-without-Performance-mode #8520
Copy link
Labels
ImprovementType: Improvement

Description

@AbhiPrasad
AbhiPrasad
opened on Jul 12, 2023
Issue body actions

Extracted from #8352 as standalone task. Make sure tracing without performance works for injecting meta tags.

We should gate this with a new boolean option.

### Tasks
- [x] https://github.com/getsentry/sentry-javascript/pull/13134
- [ ] https://github.com/getsentry/sentry-javascript/pull/13201
- [ ] https://github.com/getsentry/sentry-javascript/issues/13106
- [ ] https://github.com/getsentry/sentry-javascript/issues/13303
- [x] [Nuxt] Inject meta tags in Tracing-without-Performance-mode
- [x] [SolidStart] Inject meta tags in Tracing-without-Perfomance-mode
- [x] [Remix] Inject meta tags in Tracing-without-Performance-mode

Activity

  1. AbhiPrasad
    added
    Type: Improvement
    Status: Backlog
    on Jul 12, 2023
  2. hubertdeng123
    removed
    Status: Backlog
    on Jul 26, 2023
  3. lforst commented on Nov 9, 2023

    @lforst
    lforst
    on Nov 9, 2023
    Contributor
    More actions

    @AbhiPrasad What exactly needs to be done here? I would like to do this for Next.js but don't fully understand the task.

  4. AbhiPrasad commented on Nov 9, 2023

    @AbhiPrasad
    AbhiPrasad
    on Nov 9, 2023
    ContributorAuthor
    More actions

    Right now we only inject meta tags if there is a sampled transaction/span. It would be great if we can remove this condition and inject meta tags based on the propagation context.

    Same conditional logic like we have for undici:

    sentry-javascript/packages/node/src/integrations/undici/index.ts

    Lines 175 to 185 in 530f786

    if (span) {
    const dynamicSamplingContext = span?.transaction?.getDynamicSamplingContext();
    const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext);
    setHeadersOnRequest(request, span.toTraceparent(), sentryBaggageHeader);
    } else {
    const { traceId, sampled, dsc } = scope.getPropagationContext();
    const sentryTrace = generateSentryTraceHeader(traceId, undefined, sampled);
    const dynamicSamplingContext = dsc || getDynamicSamplingContextFromClient(traceId, client, scope);
    const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext);
    setHeadersOnRequest(request, sentryTrace, sentryBaggageHeader);

    Reacted by Luca Forstner
  5. lforst commented on Nov 9, 2023

    @lforst
    lforst
    on Nov 9, 2023
    Contributor
    More actions

    Got it. Thanks!

  6. lforst commented on Nov 14, 2023

    @lforst
    lforst
    on Nov 14, 2023
    Contributor
    More actions

    @AbhiPrasad I wonder if this will screw with the trace view in replays a lot. This would essentially cause browser sessions of multiple different users to be grouped together under one server process 🤔 Maybe this is not what we want at all...

  7. Lms24
    changed the title [-]Use propagation context when injecting meta tags[/-] [+]Inject meta tags in Tracing-without-Performance-mode [/+] on Jul 30, 2024
  8. AbhiPrasad
    added
    Feature: Tracing
    on Jul 30, 2024
  9. s1gr1d commented on Dec 11, 2024

    @s1gr1d
    s1gr1d
    on Dec 11, 2024
    Member
    More actions

    Closing this because it has been implemented

  10. s1gr1d
    closed this as completedon Dec 11, 2024
  11. ghost added
    Improvement
    on Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementType: Improvement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.