mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 20:48:29 +02:00
feat: update dependencies, node
This commit is contained in:
parent
0ec953ee6d
commit
29cb413d63
507 changed files with 84113 additions and 61309 deletions
7
node_modules/@opentelemetry/api/build/esm/trace/context-utils.js
generated
vendored
7
node_modules/@opentelemetry/api/build/esm/trace/context-utils.js
generated
vendored
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
import { createContextKey } from '../context/context';
|
||||
import { NonRecordingSpan } from './NonRecordingSpan';
|
||||
import { ContextAPI } from '../api/context';
|
||||
/**
|
||||
* span key
|
||||
*/
|
||||
|
@ -27,6 +28,12 @@ var SPAN_KEY = createContextKey('OpenTelemetry Context Key SPAN');
|
|||
export function getSpan(context) {
|
||||
return context.getValue(SPAN_KEY) || undefined;
|
||||
}
|
||||
/**
|
||||
* Gets the span from the current context, if one exists.
|
||||
*/
|
||||
export function getActiveSpan() {
|
||||
return getSpan(ContextAPI.getInstance().active());
|
||||
}
|
||||
/**
|
||||
* Set the span on a context
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue