[PR #9111] chore(core): update @opentelemetry/api dep declaration to be optional #25343

Open
opened 2026-04-15 22:50:45 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/9111
Author: @jonathansamines
Created: 4/10/2026
Status: 🔄 Open

Base: mainHead: chore/optional-otel-api


📝 Commits (5)

  • 72bcc45 chore(core): update @opentelemetry/api dep declaration to be optional
  • 8f77863 chore(core): lazy load opentelemetry api
  • 5747d62 chore(core): wait until api dependency is ready
  • 5467dbe chore(core): increase test timeout
  • 444a79b chore(core): refactor classes to factories

📊 Changes

7 files changed (+276 additions, -136 deletions)

View changed files

.changeset/major-bats-arrive.md (+5 -0)
📝 packages/better-auth/src/instrumentation.db.test.ts (+71 -57)
📝 packages/better-auth/src/instrumentation.endpoint.test.ts (+43 -32)
📝 packages/core/package.json (+3 -0)
packages/core/src/instrumentation/api.ts (+64 -0)
📝 packages/core/src/instrumentation/instrumentation.test.ts (+82 -44)
📝 packages/core/src/instrumentation/tracer.ts (+8 -3)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/9111 **Author:** [@jonathansamines](https://github.com/jonathansamines) **Created:** 4/10/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `chore/optional-otel-api` --- ### 📝 Commits (5) - [`72bcc45`](https://github.com/better-auth/better-auth/commit/72bcc45147d251b7a3658b4d7581d6f4613861d8) chore(core): update @opentelemetry/api dep declaration to be optional - [`8f77863`](https://github.com/better-auth/better-auth/commit/8f77863a667ab0596dc80feb5988fbd07fa8bda8) chore(core): lazy load opentelemetry api - [`5747d62`](https://github.com/better-auth/better-auth/commit/5747d62d0491b50febcb758225693020db84558c) chore(core): wait until api dependency is ready - [`5467dbe`](https://github.com/better-auth/better-auth/commit/5467dbe6a4361ea7c31a695b791566a37797d724) chore(core): increase test timeout - [`444a79b`](https://github.com/better-auth/better-auth/commit/444a79b464c9c9b4da1625483c387832c93bbd65) chore(core): refactor classes to factories ### 📊 Changes **7 files changed** (+276 additions, -136 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/major-bats-arrive.md` (+5 -0) 📝 `packages/better-auth/src/instrumentation.db.test.ts` (+71 -57) 📝 `packages/better-auth/src/instrumentation.endpoint.test.ts` (+43 -32) 📝 `packages/core/package.json` (+3 -0) ➕ `packages/core/src/instrumentation/api.ts` (+64 -0) 📝 `packages/core/src/instrumentation/instrumentation.test.ts` (+82 -44) 📝 `packages/core/src/instrumentation/tracer.ts` (+8 -3) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:50:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25343