Next release of setup-bun
This commit is contained in:
9
node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js
generated
vendored
9
node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js
generated
vendored
@@ -13,6 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { ContextAPI } from '../api/context';
|
||||
import { createContextKey } from '../context/context';
|
||||
/**
|
||||
* Baggage key
|
||||
@@ -27,6 +28,14 @@ var BAGGAGE_KEY = createContextKey('OpenTelemetry Baggage Key');
|
||||
export function getBaggage(context) {
|
||||
return context.getValue(BAGGAGE_KEY) || undefined;
|
||||
}
|
||||
/**
|
||||
* Retrieve the current baggage from the active/current context
|
||||
*
|
||||
* @returns {Baggage} Extracted baggage from the context
|
||||
*/
|
||||
export function getActiveBaggage() {
|
||||
return getBaggage(ContextAPI.getInstance().active());
|
||||
}
|
||||
/**
|
||||
* Store a baggage in the given context
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user