Skip to content

Commit 2bfd2dc

Browse files
chargomemydea
authored andcommitted
chore: clarify sse term
1 parent ba8cb12 commit 2bfd2dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/browser/src/tracing/request.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ export function instrumentOutgoingRequests(_options?: Partial<RequestInstrumenta
121121

122122
if (traceFetch) {
123123
if (client) {
124-
// Keeping track of http requests, whose body payloads resolved later than the intial resolved request (e.g. SSE)
124+
// Keeping track of http requests, whose body payloads resolved later than the intial resolved request
125+
// e.g. streaming using server sent events (SSE)
125126
client.addEventProcessor(event => {
126127
if (event.type === 'transaction' && event.spans) {
127128
event.spans.forEach(span => {

packages/utils/src/instrument/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function addFetchInstrumentationHandler(handler: (data: HandlerDataFetch)
2727
}
2828

2929
/**
30-
* Add an instrumentation handler for long-lived fetch requests, like consuming SSE via fetch.
30+
* Add an instrumentation handler for long-lived fetch requests, like consuming server-sent events (SSE) via fetch.
3131
* The handler will resolve the request body and emit the actual `endTimestamp`, so that the
3232
* span can be updated accordingly.
3333
*

0 commit comments

Comments
 (0)