Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Web SDK package #4702

Open
martinkuba opened this issue May 13, 2024 · 0 comments
Open

Add Web SDK package #4702

martinkuba opened this issue May 13, 2024 · 0 comments

Comments

@martinkuba
Copy link
Contributor

martinkuba commented May 13, 2024

We currently have Node SDK, which bundles together packages that are relevant to instrumenting Node applications. It also provides a simplified configuration that makes it easier for users to get started.

I propose that we introduce a Web SDK package that provides the same benefits for web applications - to make it easier for users to get started quickly with web instrumentation. It would include the following:

  • simplified configuration for WebTracerProvider
  • simplified configuration for EventLoggerProvider
  • start/shutdown methods
  • automatically run resource detectors
  • default resource detectors relevant to web applications (e.g. browser detector)

In addition, I think the following could also be the Web SDK's responsibility, but I think more discussion is needed:

  • automatically setup default exporters
    • In browsers, the HTTP JSON exporters make most sense
  • processors for attaching session.id on spans and events
    • This could be a separate package, but initially could live in this package
  • mechanism for configuring session management (e.g. persisting across page loads, expiration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant