@sentio/runtime 4.1.0-rc.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm-Ajeyb2yg.js +2 -0
- package/dist/{esm-CSGQo6hb.js.map → esm-Ajeyb2yg.js.map} +1 -1
- package/dist/execAsync-Cu4Uyhzv.js +2 -0
- package/dist/{execAsync-DiFDE921.js.map → execAsync-Cu4Uyhzv.js.map} +1 -1
- package/dist/getMachineId-bsd-DMCgGTrk.js +2 -0
- package/dist/{getMachineId-bsd-57c_YWfQ.js.map → getMachineId-bsd-DMCgGTrk.js.map} +1 -1
- package/dist/getMachineId-darwin-Dy0upv7d.js +3 -0
- package/dist/{getMachineId-darwin-dyf00K_U.js.map → getMachineId-darwin-Dy0upv7d.js.map} +1 -1
- package/dist/getMachineId-linux-1gt-JynE.js +2 -0
- package/dist/{getMachineId-linux-p9niCx07.js.map → getMachineId-linux-1gt-JynE.js.map} +1 -1
- package/dist/getMachineId-unsupported-aqcKyF65.js +2 -0
- package/dist/{getMachineId-unsupported-hKbFGxhH.js.map → getMachineId-unsupported-aqcKyF65.js.map} +1 -1
- package/dist/getMachineId-win-BOJrF7mQ.js +2 -0
- package/dist/{getMachineId-win-Bn6Q0xbV.js.map → getMachineId-win-BOJrF7mQ.js.map} +1 -1
- package/dist/index.d.ts +0 -309
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -67
- package/dist/index.js.map +1 -1
- package/dist/plugin-BKPj92hO.js +3 -0
- package/dist/plugin-BKPj92hO.js.map +1 -0
- package/dist/processor-runner.js +134 -57665
- package/dist/processor-runner.js.map +1 -1
- package/dist/service-v3-CUCRzxpl.js +11 -0
- package/dist/service-v3-CUCRzxpl.js.map +1 -0
- package/package.json +1 -1
- package/src/gen/processor/protos/processor_pb.ts +14 -4
- package/src/utils.ts +1 -4
- package/dist/esm-CSGQo6hb.js +0 -1773
- package/dist/execAsync-DiFDE921.js +0 -14
- package/dist/getMachineId-bsd-57c_YWfQ.js +0 -30
- package/dist/getMachineId-darwin-dyf00K_U.js +0 -27
- package/dist/getMachineId-linux-p9niCx07.js +0 -23
- package/dist/getMachineId-unsupported-hKbFGxhH.js +0 -18
- package/dist/getMachineId-win-Bn6Q0xbV.js +0 -29
- package/dist/plugin-CT4pDRpS.js +0 -6925
- package/dist/plugin-CT4pDRpS.js.map +0 -1
- package/dist/service-v3-BpwaUIVx.js +0 -12238
- package/dist/service-v3-BpwaUIVx.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as e}from"node:module";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),ee=e=>o.call(e,`module.exports`)?e[`module.exports`]:u(n({},`__esModule`,{value:!0}),e),te=e(import.meta.url),ne,re=s((()=>{ne=typeof globalThis==`object`?globalThis:global})),ie=s((()=>{re()})),ae=s((()=>{ie()})),f,oe=s((()=>{f=`1.9.0`}));function se(e){var t=new Set([e]),n=new Set,r=e.match(ce);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(t){return t===e};function a(e){return n.add(e),!1}function o(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(n.has(e))return!1;var r=e.match(ce);if(!r)return a(e);var s={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};return s.prerelease!=null||i.major!==s.major?a(e):i.major===0?i.minor===s.minor&&i.patch<=s.patch?o(e):a(e):i.minor<=s.minor?o(e):a(e)}}var ce,le,ue=s((()=>{oe(),ce=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,le=se(f)}));function p(e,t,n,r){r===void 0&&(r=!1);var i=_[g]=_[g]??{version:f};if(!r&&i[e]){var a=Error(`@opentelemetry/api: Attempted duplicate registration of API: `+e);return n.error(a.stack||a.message),!1}if(i.version!==`1.9.0`){var a=Error(`@opentelemetry/api: Registration of version v`+i.version+` for `+e+` does not match previously registered API v`+f);return n.error(a.stack||a.message),!1}return i[e]=t,n.debug(`@opentelemetry/api: Registered a global for `+e+` v`+f+`.`),!0}function m(e){var t=_[g]?.version;if(!(!t||!le(t)))return _[g]?.[e]}function h(e,t){t.debug(`@opentelemetry/api: Unregistering a global for `+e+` v`+f+`.`);var n=_[g];n&&delete n[e]}var de,g,_,v=s((()=>{ae(),oe(),ue(),de=f.split(`.`)[0],g=Symbol.for(`opentelemetry.js.api.`+de),_=ne}));function y(e,t,n){var r=m(`diag`);if(r)return n.unshift(t),r[e].apply(r,pe([],fe(n),!1))}var fe,pe,me,he=s((()=>{v(),fe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},pe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},me=function(){function e(e){this._namespace=e.namespace||`DiagComponentLogger`}return e.prototype.debug=function(){var e=[...arguments];return y(`debug`,this._namespace,e)},e.prototype.error=function(){var e=[...arguments];return y(`error`,this._namespace,e)},e.prototype.info=function(){var e=[...arguments];return y(`info`,this._namespace,e)},e.prototype.warn=function(){var e=[...arguments];return y(`warn`,this._namespace,e)},e.prototype.verbose=function(){var e=[...arguments];return y(`verbose`,this._namespace,e)},e}()})),b,x=s((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.ERROR=30]=`ERROR`,e[e.WARN=50]=`WARN`,e[e.INFO=60]=`INFO`,e[e.DEBUG=70]=`DEBUG`,e[e.VERBOSE=80]=`VERBOSE`,e[e.ALL=9999]=`ALL`})(b||={})}));function ge(e,t){e<b.NONE?e=b.NONE:e>b.ALL&&(e=b.ALL),t||={};function n(n,r){var i=t[n];return typeof i==`function`&&e>=r?i.bind(t):function(){}}return{error:n(`error`,b.ERROR),warn:n(`warn`,b.WARN),info:n(`info`,b.INFO),debug:n(`debug`,b.DEBUG),verbose:n(`verbose`,b.VERBOSE)}}var _e=s((()=>{x()})),ve,ye,be,S,C=s((()=>{he(),_e(),x(),v(),ve=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},ye=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},be=`diag`,S=function(){function e(){function e(e){return function(){var t=[...arguments],n=m(`diag`);if(n)return n[e].apply(n,ye([],ve(t),!1))}}var t=this;t.setLogger=function(e,n){if(n===void 0&&(n={logLevel:b.INFO}),e===t){var r=Error(`Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation`);return t.error(r.stack??r.message),!1}typeof n==`number`&&(n={logLevel:n});var i=m(`diag`),a=ge(n.logLevel??b.INFO,e);if(i&&!n.suppressOverrideMessage){var o=Error().stack??`<failed to generate stacktrace>`;i.warn(`Current logger will be overwritten from `+o),a.warn(`Current logger will overwrite one already registered from `+o)}return p(`diag`,a,t,!0)},t.disable=function(){h(be,t)},t.createComponentLogger=function(e){return new me(e)},t.verbose=e(`verbose`),t.debug=e(`debug`),t.info=e(`info`),t.warn=e(`warn`),t.error=e(`error`)}return e.instance=function(){return this._instance||=new e,this._instance},e}()})),xe,Se,Ce,we=s((()=>{xe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Se=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},Ce=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=xe(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var o=Se(r),s=o.next();!s.done;s=o.next()){var c=s.value;a._entries.delete(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}()})),Te,Ee=s((()=>{Te=Symbol(`BaggageEntryMetadata`)}));function De(e){return e===void 0&&(e={}),new Ce(new Map(Object.entries(e)))}function Oe(e){return typeof e!=`string`&&(ke.error(`Cannot create baggage metadata from unknown type: `+typeof e),e=``),{__TYPE__:Te,toString:function(){return e}}}var ke,Ae=s((()=>{C(),we(),Ee(),ke=S.instance()}));function w(e){return Symbol.for(e)}var je,T,E=s((()=>{je=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}return e}(),T=new je})),D,O,Me=s((()=>{D=[{n:`error`,c:`error`},{n:`warn`,c:`warn`},{n:`info`,c:`info`},{n:`debug`,c:`debug`},{n:`verbose`,c:`trace`}],O=function(){function e(){function e(e){return function(){var t=[...arguments];if(console){var n=console[e];if(typeof n!=`function`&&(n=console.log),typeof n==`function`)return n.apply(console,t)}}}for(var t=0;t<D.length;t++)this[D[t].n]=e(D[t].c)}return e}()}));function Ne(){return M}var k,Pe,A,Fe,Ie,Le,Re,j,ze,Be,Ve,M,He,Ue,We,Ge,Ke,qe,Je,Ye=s((()=>{k=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Pe=function(){function e(){}return e.prototype.createGauge=function(e,t){return Ue},e.prototype.createHistogram=function(e,t){return We},e.prototype.createCounter=function(e,t){return He},e.prototype.createUpDownCounter=function(e,t){return Ge},e.prototype.createObservableGauge=function(e,t){return qe},e.prototype.createObservableCounter=function(e,t){return Ke},e.prototype.createObservableUpDownCounter=function(e,t){return Je},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),A=function(){function e(){}return e}(),Fe=function(e){k(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(A),Ie=function(e){k(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(e,t){},t}(A),Le=function(e){k(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(A),Re=function(e){k(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(e,t){},t}(A),j=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),ze=function(e){k(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(j),Be=function(e){k(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(j),Ve=function(e){k(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(j),M=new Pe,He=new Fe,Ue=new Le,We=new Re,Ge=new Ie,Ke=new ze,qe=new Be,Je=new Ve})),Xe,Ze=s((()=>{(function(e){e[e.INT=0]=`INT`,e[e.DOUBLE=1]=`DOUBLE`})(Xe||={})})),N,P,Qe=s((()=>{N={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},P={set:function(e,t,n){e!=null&&(e[t]=n)}}})),$e,et,tt,nt=s((()=>{E(),$e=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},et=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},tt=function(){function e(){}return e.prototype.active=function(){return T},e.prototype.with=function(e,t,n){var r=[...arguments].slice(3);return t.call.apply(t,et([n],$e(r),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}()})),rt,it,F,at,I,L=s((()=>{nt(),v(),C(),rt=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},it=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},F=`context`,at=new tt,I=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalContextManager=function(e){return p(F,e,S.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,n){for(var r,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return(r=this._getContextManager()).with.apply(r,it([e,t,n],rt(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return m(F)||at},e.prototype.disable=function(){this._getContextManager().disable(),h(F,S.instance())},e}()})),R,ot=s((()=>{(function(e){e[e.NONE=0]=`NONE`,e[e.SAMPLED=1]=`SAMPLED`})(R||={})})),z,B,V,st=s((()=>{ot(),z=`0000000000000000`,B=`00000000000000000000000000000000`,V={traceId:B,spanId:z,traceFlags:R.NONE}})),H,ct=s((()=>{st(),H=function(){function e(e){e===void 0&&(e=V),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}()}));function lt(e){return e.getValue(U)||void 0}function ut(){return lt(I.getInstance().active())}function dt(e,t){return e.setValue(U,t)}function ft(e){return e.deleteValue(U)}function pt(e,t){return dt(e,new H(t))}function mt(e){return lt(e)?.spanContext()}var U,ht=s((()=>{E(),ct(),L(),U=w(`OpenTelemetry Context Key SPAN`)}));function gt(e){return bt.test(e)&&e!==`00000000000000000000000000000000`}function _t(e){return xt.test(e)&&e!==`0000000000000000`}function vt(e){return gt(e.traceId)&&_t(e.spanId)}function yt(e){return new H(e)}var bt,xt,St=s((()=>{st(),ct(),bt=/^([0-9a-f]{32})$/i,xt=/^[0-9a-f]{16}$/i}));function Ct(e){return typeof e==`object`&&typeof e.spanId==`string`&&typeof e.traceId==`string`&&typeof e.traceFlags==`number`}var W,wt,Tt=s((()=>{L(),ht(),ct(),St(),W=I.getInstance(),wt=function(){function e(){}return e.prototype.startSpan=function(e,t,n){if(n===void 0&&(n=W.active()),t?.root)return new H;var r=n&&mt(n);return Ct(r)&&vt(r)?new H(r):new H},e.prototype.startActiveSpan=function(e,t,n,r){var i,a,o;if(!(arguments.length<2)){arguments.length===2?o=t:arguments.length===3?(i=t,o=n):(i=t,a=n,o=r);var s=a??W.active(),c=this.startSpan(e,i,s),l=dt(s,c);return W.with(l,o,void 0,c)}},e}()})),Et,Dt,Ot=s((()=>{Tt(),Et=new wt,Dt=function(){function e(e,t,n,r){this._provider=e,this.name=t,this.version=n,this.options=r}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):Et},e}()})),kt,At=s((()=>{Tt(),kt=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return new wt},e}()})),jt,G,Mt=s((()=>{Ot(),At(),jt=new kt,G=function(){function e(){}return e.prototype.getTracer=function(e,t,n){return this.getDelegateTracer(e,t,n)??new Dt(this,e,t,n)},e.prototype.getDelegate=function(){return this._delegate??jt},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,n){return this._delegate?.getTracer(e,t,n)},e}()})),Nt,Pt=s((()=>{(function(e){e[e.NOT_RECORD=0]=`NOT_RECORD`,e[e.RECORD=1]=`RECORD`,e[e.RECORD_AND_SAMPLED=2]=`RECORD_AND_SAMPLED`})(Nt||={})})),Ft,It=s((()=>{(function(e){e[e.INTERNAL=0]=`INTERNAL`,e[e.SERVER=1]=`SERVER`,e[e.CLIENT=2]=`CLIENT`,e[e.PRODUCER=3]=`PRODUCER`,e[e.CONSUMER=4]=`CONSUMER`})(Ft||={})})),Lt,Rt=s((()=>{(function(e){e[e.UNSET=0]=`UNSET`,e[e.OK=1]=`OK`,e[e.ERROR=2]=`ERROR`})(Lt||={})}));function zt(e){return Ut.test(e)}function Bt(e){return Wt.test(e)&&!Gt.test(e)}var K,Vt,Ht,Ut,Wt,Gt,Kt=s((()=>{K=`[_0-9a-z-*/]`,Vt=`[a-z]`+K+`{0,255}`,Ht=`[a-z0-9]`+K+`{0,240}@[a-z]`+K+`{0,13}`,Ut=RegExp(`^(?:`+Vt+`|`+Ht+`)$`),Wt=/^[ -~]{0,255}[!-~]$/,Gt=/,|=/})),qt,Jt,Yt,Xt,Zt,Qt=s((()=>{Kt(),qt=32,Jt=512,Yt=`,`,Xt=`=`,Zt=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n},e.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},e.prototype.get=function(e){return this._internalState.get(e)},e.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,n){return t.push(n+Xt+e.get(n)),t},[]).join(Yt)},e.prototype._parse=function(e){e.length>Jt||(this._internalState=e.split(Yt).reverse().reduce(function(e,t){var n=t.trim(),r=n.indexOf(Xt);if(r!==-1){var i=n.slice(0,r),a=n.slice(r+1,t.length);zt(i)&&Bt(a)&&e.set(i,a)}return e},new Map),this._internalState.size>qt&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,qt))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}()}));function $t(e){return new Zt(e)}var en=s((()=>{Qt()})),tn,nn=s((()=>{L(),tn=I.getInstance()})),q,rn=s((()=>{C(),q=S.instance()})),an,on,sn=s((()=>{Ye(),an=function(){function e(){}return e.prototype.getMeter=function(e,t,n){return M},e}(),on=new an})),J,cn,ln=s((()=>{sn(),v(),C(),J=`metrics`,cn=function(){function e(){}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalMeterProvider=function(e){return p(J,e,S.instance())},e.prototype.getMeterProvider=function(){return m(J)||on},e.prototype.getMeter=function(e,t,n){return this.getMeterProvider().getMeter(e,t,n)},e.prototype.disable=function(){h(J,S.instance())},e}()})),Y,un=s((()=>{ln(),Y=cn.getInstance()})),dn,fn=s((()=>{dn=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}()}));function pn(e){return e.getValue(X)||void 0}function mn(){return pn(I.getInstance().active())}function hn(e,t){return e.setValue(X,t)}function gn(e){return e.deleteValue(X)}var X,_n=s((()=>{L(),E(),X=w(`OpenTelemetry Baggage Key`)})),Z,vn,yn,bn=s((()=>{v(),fn(),Qe(),_n(),Ae(),C(),Z=`propagation`,vn=new dn,yn=function(){function e(){this.createBaggage=De,this.getBaggage=pn,this.getActiveBaggage=mn,this.setBaggage=hn,this.deleteBaggage=gn}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalPropagator=function(e){return p(Z,e,S.instance())},e.prototype.inject=function(e,t,n){return n===void 0&&(n=P),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return n===void 0&&(n=N),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){h(Z,S.instance())},e.prototype._getGlobalPropagator=function(){return m(Z)||vn},e}()})),xn,Sn=s((()=>{bn(),xn=yn.getInstance()})),Q,Cn,wn=s((()=>{v(),Mt(),St(),ht(),C(),Q=`trace`,Cn=function(){function e(){this._proxyTracerProvider=new G,this.wrapSpanContext=yt,this.isSpanContextValid=vt,this.deleteSpan=ft,this.getSpan=lt,this.getActiveSpan=ut,this.getSpanContext=mt,this.setSpan=dt,this.setSpanContext=pt}return e.getInstance=function(){return this._instance||=new e,this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=p(Q,this._proxyTracerProvider,S.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return m(Q)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){h(Q,S.instance()),this._proxyTracerProvider=new G},e}()})),$,Tn=s((()=>{wn(),$=Cn.getInstance()})),En=l({DiagConsoleLogger:()=>O,DiagLogLevel:()=>b,INVALID_SPANID:()=>z,INVALID_SPAN_CONTEXT:()=>V,INVALID_TRACEID:()=>B,ProxyTracer:()=>Dt,ProxyTracerProvider:()=>G,ROOT_CONTEXT:()=>T,SamplingDecision:()=>Nt,SpanKind:()=>Ft,SpanStatusCode:()=>Lt,TraceFlags:()=>R,ValueType:()=>Xe,baggageEntryMetadataFromString:()=>Oe,context:()=>tn,createContextKey:()=>w,createNoopMeter:()=>Ne,createTraceState:()=>$t,default:()=>Dn,defaultTextMapGetter:()=>N,defaultTextMapSetter:()=>P,diag:()=>q,isSpanContextValid:()=>vt,isValidSpanId:()=>_t,isValidTraceId:()=>gt,metrics:()=>Y,propagation:()=>xn,trace:()=>$}),Dn,On=s((()=>{Ae(),E(),Me(),x(),Ye(),Ze(),Qe(),Ot(),Mt(),Pt(),It(),Rt(),ot(),en(),St(),st(),nn(),rn(),un(),Sn(),Tn(),Dn={context:tn,diag:q,metrics:Y,propagation:xn,trace:$}}));export{q as a,Me as c,c as d,s as f,d as g,ee as h,Y as i,b as l,te as m,On as n,rn as o,l as p,un as r,O as s,En as t,x as u};
|
|
2
|
+
//# sourceMappingURL=esm-Ajeyb2yg.js.map
|