Skip to content

Commit ff31278

Browse files
authored
Update develop docs data handling section for new APIs (#12347)
1 parent a18db4b commit ff31278

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

develop-docs/sdk/expected-features/data-handling.mdx

+6-2
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,16 @@ This helps Relay to know what kind of data it receives and this helps with scrub
6363
If query strings are present in the URL or fragments (Browser SDKs only) are present in the URI, both are set into the data attribute of the span.
6464

6565
```js
66-
span.setData({
66+
span.setAttributes({
6767
"http.query": url.getQuery(),
6868
"http.fragment": uri.getFragment(),
6969
});
7070
```
7171

72+
```python
73+
span.set_data("http.query", query)
74+
```
75+
7276
Additionally all semantic conventions of OpenTelementry for http spans should be set in the `span.data` if applicable:
7377
https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/http/
7478

@@ -86,7 +90,7 @@ If the `message` in a breadcrumb contains an URL it should be formatted the same
8690
If query strings are present in the URL or fragments (Browser SDKs only) are present in the URI, both should also be set in the data attribute like with `http` spans.
8791

8892
```js
89-
getCurrentHub().addBreadcrumb({
93+
Sentry.addBreadcrumb({
9094
type: "http",
9195
category: "xhr",
9296
data: {

0 commit comments

Comments
 (0)