You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[core] Sanitize URLs in tracing policy (Azure#29606)
### Packages impacted by this PR
@azure/core-rest-pipeline
@typespec/ts-http-runtime
### Issues associated with this PR
ResolvesAzure#29433
### Describe the problem that is addressed by this PR
Tracing spans capture the url as an attribute. A customer noticed that
URLs are not sanitized correctly in Java - specifically the QS params.
This was fixed in Java and will now be fixed in JS. It could be
considered a breaking change; however, the OTEL instrumentation
package is still in beta and as this should have been sanitized earlier
we can consider this a bugfix.
### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?
I could duplicate the Sanitizer#sanitizeUrl method; however, I wanted to
make sure I can take advantge of the default query params if the list is ever
updated.
Copy file name to clipboardExpand all lines: sdk/core/core-rest-pipeline/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
9
9
### Bugs Fixed
10
10
11
+
- Tracing spans will now correctly sanitize query parameters in the http.url span attribute. [#29606](https://github.com/Azure/azure-sdk-for-js/pull/29606)
0 commit comments