mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-19 04:58:25 +02:00
Next release of setup-bun
This commit is contained in:
parent
ed9eb0969c
commit
9c14b74b45
1082 changed files with 242557 additions and 173810 deletions
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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue