Skip to content

Commit 5da4cf5

Browse files
t2t2mhennoch
andauthored
Revert "Enable async context manager by default (#539)" (#575)
Co-authored-by: mhennoch <[email protected]>
1 parent e0a2190 commit 5da4cf5

18 files changed

+85
-30
lines changed

docs/Configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Below are the different initialization options available for the Agent:
1818
|`debug`|`boolean`|`false`|Enables debug logging in developer console|
1919
|`ignoreUrls`|`(string\|regex)[]`|`[]`|Sets a list of URLs to be ignored. Any URLs that XHR/Fetch or websocket connect that match the rules will not produce a span. Two different rules can be provided: equals match to a specified string or a regex match.|
2020
|`cookieDomain`|`string`|`(none)`|Configures the domain used for [session tracking](Cookies.md). For example, if you have sites `foo.example.com` and `bar.example.com`, setting `cookieDomain` to `example.com` allows both sites to use the same session identifier.|
21-
|`context.async`|`boolean`|`true`|Enables [asyncronous context manager](Async-Traces.md)|
21+
|`context.async`|`boolean`|`false`|Enables [asyncronous context manager](Async-Traces.md)|
2222
|`exporter.onAttributesSerializing`|`(a: SpanAttributes, s?: Span) => SpanAttributes`|`(attrs) => attrs`|Provides a callback for modifying span attributes before exporting. An example use case of the serializer is to filter out PII.|
2323
|`instrumentations`|`object`|See the following chapter|Enables or disables specific instrumentations. More details how to enable or disable the instrumentations in the next chapter.|
2424
|`tracer`|`object`|[`TracerConfig`](https://github.com/open-telemetry/opentelemetry-js/blob/main/packages/opentelemetry-sdk-trace-base/src/types.ts)|Configuration options passed to WebTracerProvider. Can be used [to configure sampling](./Sampling.md)|

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/web/integration-tests/tests/context/fetch-then.ejs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<meta charset="UTF-8">
55
<title>Fetch - then</title>
66

7-
<%- renderAgent() %>
7+
<%- renderAgent({
8+
context: {
9+
async: true
10+
}
11+
}) %>
812
</head>
913
<body>
1014
<h1>Fetch - then</h1>

packages/web/integration-tests/tests/context/location-hash.ejs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<meta charset="UTF-8">
55
<title>location.hash</title>
66

7-
<%- renderAgent() %>
7+
<%- renderAgent({
8+
context: {
9+
async: true
10+
}
11+
}) %>
812
</head>
913
<body>
1014
<h1>location.hash</h1>

packages/web/integration-tests/tests/context/messageport-addeventlistener.ejs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<meta charset="UTF-8">
55
<title>MessagePort - addEventListener</title>
66

7-
<%- renderAgent() %>
7+
<%- renderAgent({
8+
context: {
9+
async: true
10+
}
11+
}) %>
812
</head>
913
<body>
1014
<h1>MessagePort - addEventListener</h1>

packages/web/integration-tests/tests/context/messageport-cors-inner.ejs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<meta charset="UTF-8">
55
<title>Iframe</title>
66

7-
<%- renderAgent() %>
7+
<%- renderAgent({
8+
context: {
9+
async: true
10+
}
11+
}) %>
812
</head>
913
<body>
1014
<h1>Inner frame</h1>

packages/web/integration-tests/tests/context/messageport-cors.ejs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<meta charset="UTF-8">
55
<title>MessagePort Iframe</title>
66

7-
<%- renderAgent() %>
7+
<%- renderAgent({
8+
context: {
9+
async: true
10+
}
11+
}) %>
812
</head>
913
<body>
1014
<h1>MessagePort Iframe</h1>

packages/web/integration-tests/tests/context/messageport-onmessage.ejs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<meta charset="UTF-8">
55
<title>MessagePort - onmessage</title>
66

7-
<%- renderAgent() %>
7+
<%- renderAgent({
8+
context: {
9+
async: true
10+
}
11+
}) %>
812
</head>
913
<body>
1014
<h1>MessagePort - onmessage</h1>

packages/web/integration-tests/tests/context/mutation-observer-textnode.ejs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<meta charset="UTF-8">
55
<title>Mutation Observer - textNode</title>
66

7-
<%- renderAgent() %>
7+
<%- renderAgent({
8+
context: {
9+
async: true
10+
}
11+
}) %>
812
</head>
913
<body>
1014
<h1>Mutation Observer - textNode</h1>

packages/web/integration-tests/tests/context/promise.ejs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<meta charset="UTF-8">
55
<title>Promise</title>
66

7-
<%- renderAgent() %>
7+
<%- renderAgent({
8+
context: {
9+
async: true
10+
}
11+
}) %>
812
</head>
913
<body>
1014
<h1>Promise</h1>

0 commit comments

Comments
 (0)