File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import { SpanContext } from './span_context' ;
18
- import { SpanKind } from './span_kind' ;
17
+ import { Context } from '@opentelemetry/context-base' ;
19
18
import { Attributes } from './attributes' ;
20
19
import { Link } from './link' ;
21
20
import { SamplingResult } from './SamplingResult' ;
21
+ import { SpanKind } from './span_kind' ;
22
22
23
23
/**
24
24
* This interface represent a sampler. Sampling is a mechanism to control the
@@ -29,8 +29,7 @@ export interface Sampler {
29
29
/**
30
30
* Checks whether span needs to be created and tracked.
31
31
*
32
- * @param parentContext Parent span context. Typically taken from the wire.
33
- * Can be null.
32
+ * @param context Parent Context which may contain a span.
34
33
* @param traceId of the span to be created. It can be different from the
35
34
* traceId in the {@link SpanContext}. Typically in situations when the
36
35
* span to be created starts a new trace.
@@ -42,7 +41,7 @@ export interface Sampler {
42
41
* @returns a {@link SamplingResult}.
43
42
*/
44
43
shouldSample (
45
- parentContext : SpanContext | undefined ,
44
+ context : Context ,
46
45
traceId : string ,
47
46
spanName : string ,
48
47
spanKind : SpanKind ,
You can’t perform that action at this time.
0 commit comments