Skip to content

Commit

Permalink
Changed normal string to template string and replaced old HTTP_RESPON…
Browse files Browse the repository at this point in the history
…SE_CONTENT_SIZE to new exported string

Signed-off-by: Prashansa Kulshrestha <prashkulshrestha@gmail.com>
  • Loading branch information
Prashansa-K committed May 6, 2024
1 parent 2c6b31a commit f13b18b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import * as tracing from '@opentelemetry/sdk-trace-base';
import {
SEMATTRS_HTTP_HOST,
SEMATTRS_HTTP_METHOD,
SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH,
SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH,
SEMATTRS_HTTP_SCHEME,
SEMATTRS_HTTP_STATUS_CODE,
Expand Down Expand Up @@ -373,7 +374,7 @@ describe('xhr', () => {
);
assert.ok(
(attributes[keys[2]] as number) > 0,
'attributes ${SemanticAttributess.HTTP_RESPONSE_CONTENT_SIZE} <= 0'
`attributes ${SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH} <= 0`
);
assert.strictEqual(
attributes[keys[3]],
Expand Down

0 comments on commit f13b18b

Please sign in to comment.