@xh/hoist 85.0.0 → 86.0.0-SNAPSHOT.1777580709143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/types/core/HoistBase.d.ts +2 -2
- package/build/types/core/Span.d.ts +1 -1
- package/core/HoistBase.ts +2 -2
- package/core/Span.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -47,13 +47,13 @@ export declare abstract class HoistBase {
|
|
|
47
47
|
/**
|
|
48
48
|
* Create an {@link Runner} builder with this object as the caller.
|
|
49
49
|
*
|
|
50
|
-
* @internal
|
|
50
|
+
* @internal - runner is an experimental beta feature.
|
|
51
51
|
**/
|
|
52
52
|
runner(ctx?: LoadSpec | Span): Runner;
|
|
53
53
|
/**
|
|
54
54
|
* Create an {@link Runner} builder with an initial span and this object as the caller.
|
|
55
55
|
*
|
|
56
|
-
* @internal
|
|
56
|
+
* @internal - runner is an experimental beta feature.
|
|
57
57
|
*/
|
|
58
58
|
newSpan(span: SpanConfigLike): Runner;
|
|
59
59
|
/**
|
|
@@ -46,7 +46,7 @@ export declare class Span {
|
|
|
46
46
|
setTags(tags: PlainObject): void;
|
|
47
47
|
/**
|
|
48
48
|
* Set the HTTP response status code tag and mark the span as 'error' when appropriate per
|
|
49
|
-
* OTel HTTP semantic conventions: client spans error on status
|
|
49
|
+
* OTel HTTP semantic conventions: client spans error on status ≥ 400, server spans on ≥ 500.
|
|
50
50
|
*/
|
|
51
51
|
setHttpStatus(statusCode: number): void;
|
|
52
52
|
/**
|
package/core/HoistBase.ts
CHANGED
|
@@ -133,7 +133,7 @@ export abstract class HoistBase {
|
|
|
133
133
|
/**
|
|
134
134
|
* Create an {@link Runner} builder with this object as the caller.
|
|
135
135
|
*
|
|
136
|
-
* @internal
|
|
136
|
+
* @internal - runner is an experimental beta feature.
|
|
137
137
|
**/
|
|
138
138
|
runner(ctx: LoadSpec | Span = null): Runner {
|
|
139
139
|
return Runner.create(ctx, this);
|
|
@@ -142,7 +142,7 @@ export abstract class HoistBase {
|
|
|
142
142
|
/**
|
|
143
143
|
* Create an {@link Runner} builder with an initial span and this object as the caller.
|
|
144
144
|
*
|
|
145
|
-
* @internal
|
|
145
|
+
* @internal - runner is an experimental beta feature.
|
|
146
146
|
*/
|
|
147
147
|
newSpan(span: SpanConfigLike): Runner {
|
|
148
148
|
return this.runner().newSpan(span);
|
package/core/Span.ts
CHANGED
|
@@ -85,7 +85,7 @@ export class Span {
|
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* Set the HTTP response status code tag and mark the span as 'error' when appropriate per
|
|
88
|
-
* OTel HTTP semantic conventions: client spans error on status
|
|
88
|
+
* OTel HTTP semantic conventions: client spans error on status ≥ 400, server spans on ≥ 500.
|
|
89
89
|
*/
|
|
90
90
|
setHttpStatus(statusCode: number) {
|
|
91
91
|
this.setTag('http.response.status_code', statusCode);
|