Skip to content

Commit

Permalink
fix(fetch): remove unused spanResponse variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ugzuzg committed Jul 21, 2022
1 parent 1a0e0c4 commit d8fb4f7
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,17 +321,6 @@ export class FetchInstrumentation extends InstrumentationBase<Promise<Response>>

function endSpanOnSuccess(span: api.Span, response: Response) {
plugin._applyAttributesAfterFetch(span, options, response);
const spanResponse = {
status: response.status,
statusText: response.statusText,
headers: response.headers,
url
};
if (response.status >= 200 && response.status < 400) {
if (response.url != null && response.url !== '') {
spanResponse.url = url;
}
}
plugin._endSpan(span, spanData, {
status: response.status,
statusText: response.statusText,
Expand Down

0 comments on commit d8fb4f7

Please sign in to comment.