Bump semver
This commit is contained in:
parent
863a05b28b
commit
4b7eb74ef5
579 changed files with 13988 additions and 29840 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