docs(integrations): align examples with the actual SDK API#4
Merged
Conversation
Fixes documentation/API mismatches surfaced by the @logtide 0.11.0 export audit: - nuxt: drop the non-existent clientDsn/clientEnabled/serverEnabled options; document apiUrl/apiKey as a dsn alternative; clarify single shared config for server + client. - nextjs: fix LogtideErrorBoundary usage — it wraps a component tree with an optional fallback (no `error` prop); show layout wiring. - react: fix the fallback signature (receives only `error`, no `reset`). - fastify: remove the non-existent onClose hook; document onSend. - elysia: afterResponse -> onAfterHandle; remove the non-existent onStop hook. - all frontend/server pages: hub.addBreadcrumb examples now include the required `type` and `timestamp` fields (angular, nextjs, nodejs, nuxt, react, solidjs, sveltekit, vue).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes documentation/API mismatches surfaced by the
@logtide0.11.0 export audit (logtide-dev/logtide-javascript#11). Each example now matches what the shipped packages actually expose.Changes
clientDsn/clientEnabled/serverEnabledoptions; documentedapiUrl+apiKeyas adsnalternative (now supported in 0.11.0); clarified that one config is shared by server + client.LogtideErrorBoundaryusage — it wraps a component tree with an optionalfallback(there is noerrorprop); added theapp/layout.tsxwiring.fallbacksignature (it receives onlyerror, there is noreset).onClosehook claim; documented the realonSendhook.afterResponse→onAfterHandle; removed the non-existentonStophook (documented manualhub.flush()for graceful shutdown instead).hub.addBreadcrumb()examples now include the requiredtypeandtimestampfields across angular, nextjs, nodejs, nuxt, react, solidjs, sveltekit and vue.astro checkpasses (0 errors).Note: the Node.js page intentionally documents
@logtide/core(hub) and is self-consistent — left as-is.