Skip to content

Conversation

@martinkuba
Copy link
Contributor

Which problem is this PR solving?

Follow up to #4972

Discussed in issue open-telemetry/opentelemetry-js-contrib#2358

Short description of the changes

This adds an implementation of session management for web. It introduces a SessionManager class that is responsible for starting, ending, and persisting sessions.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • unit tests
  • example added to examples/opentelemetry-web

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

@martinkuba martinkuba requested a review from a team as a code owner November 19, 2024 04:42
@codecov
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.22%. Comparing base (f85cee1) to head (1b70aa0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5173      +/-   ##
==========================================
- Coverage   95.24%   95.22%   -0.02%     
==========================================
  Files         315      311       -4     
  Lines        8604     8574      -30     
  Branches     1798     1796       -2     
==========================================
- Hits         8195     8165      -30     
  Misses        409      409              

see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good overall, just a few questions/nits. 🙂

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added stale and removed stale labels Jan 27, 2025
@github-actions
Copy link

github-actions bot commented Apr 7, 2025

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the stale label Apr 7, 2025
@pichlermarc
Copy link
Member

@martinkuba friendly ping 🙂
Trying to figure out if there's still appetite to land this feature 🤔

@martinkuba
Copy link
Contributor Author

Hi @pichlermarc, yes, this is still something that I want to see to completion. I have put it temporarily on hold while we are trying to spin up a new SIG for browser instrumentation/API (see open-telemetry/community#2751). In any case, I am planning to come back to this in the near future.

@tedsuo tedsuo moved this to In Progress in Browser: Phase 1 Jul 31, 2025
Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small comments from my side - but overall looks good to merge. 🙌

Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one more commment around using factory functions instead.
I'll wait for the other conversations on the PR to be resolved before merging. Please feel free to ping me when you're ready.

@pichlermarc pichlermarc added this pull request to the merge queue Oct 9, 2025
Merged via the queue into open-telemetry:main with commit 9145fd6 Oct 9, 2025
25 checks passed
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.

4 participants