@pydantic/logfire-browser 0.14.0 → 0.14.2
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/index.cjs +1 -1
- package/dist/index.js +107 -122
- package/package.json +10 -12
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var R=Object.defineProperty;var p=(r,e,t)=>e in r?R(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var E=(r,e,t)=>p(r,typeof e!="symbol"?e+"":e,t);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("@opentelemetry/api"),_=require("@opentelemetry/exporter-trace-otlp-http"),w=require("@opentelemetry/instrumentation"),m=require("@opentelemetry/resources"),l=require("@opentelemetry/sdk-trace-web"),i=require("@opentelemetry/semantic-conventions"),c=require("@opentelemetry/semantic-conventions/incubating"),o=require("logfire"),T=require("@opentelemetry/core"),A="target_xpath",v="event_type",h={1:"trace",5:"debug",9:"info",10:"notice",13:"warning",17:"error",21:"fatal"},S={debug:"#E3E3E3",error:"#EA4335",fatal:"#EA4335",info:"#9EC1FB",notice:"#A5D490","on-debug":"#636262","on-error":"#FFEDE9","on-fatal":"#FFEDE9","on-info":"#063175","on-notice":"#222222","on-trace":"#636262","on-warning":"#613A0D",trace:"#E3E3E3",warning:"#EFB77A"};class C{export(e,t){this.sendSpans(e,t)}forceFlush(){return Promise.resolve()}shutdown(){return this.sendSpans([]),this.forceFlush()}exportInfo(e){var t;return{attributes:e.attributes,duration:T.hrTimeToMicroseconds(e.duration),events:e.events,id:e.spanContext().spanId,instrumentationScope:e.instrumentationScope,kind:e.kind,links:e.links,name:e.name,parentSpanContext:e.parentSpanContext,resource:{attributes:e.resource.attributes},status:e.status,timestamp:T.hrTimeToMicroseconds(e.startTime),traceId:e.spanContext().traceId,traceState:(t=e.spanContext().traceState)==null?void 0:t.serialize()}}sendSpans(e,t){for(const a of e){const n=h[a.attributes["logfire.level_num"]]??"info",{attributes:u,name:d,...f}=this.exportInfo(a);console.log(`%cLogfire %c${n}`,"background-color: #E520E9; color: #FFFFFF",`background-color: ${S[`on-${n}`]}; color: ${S[n]}`,d,u,f)}t&&t({code:T.ExportResultCode.SUCCESS})}}class D{constructor(e,t){E(this,"console");E(this,"wrapped");t&&(this.console=new l.SimpleSpanProcessor(new C)),this.wrapped=e}async forceFlush(){var e;return await((e=this.console)==null?void 0:e.forceFlush()),this.wrapped.forceFlush()}onEnd(e){var t;(t=this.console)==null||t.onEnd(e),this.wrapped.onEnd(e)}onStart(e,t){var a;if(c.ATTR_HTTP_URL in e.attributes){const n=new URL(e.attributes[c.ATTR_HTTP_URL]);Reflect.set(e,"name",`${e.name} ${n.pathname}`)}A in e.attributes&&Reflect.set(e,"name",`${e.attributes[v]??"unknown"} ${e.attributes[A]??""}`),(a=this.console)==null||a.onStart(e,t),this.wrapped.onStart(e,t)}async shutdown(){var e;return await((e=this.console)==null?void 0:e.shutdown()),this.wrapped.shutdown()}}function F(){return{}}async function P(r,e){return{...typeof r=="function"?await r():r??{},...e()}}function L(r){var f,b;r.diagLogLevel!==void 0&&s.diag.setLogger(new s.DiagConsoleLogger,r.diagLogLevel),o.configureLogfireApi({errorFingerprinting:r.errorFingerprinting??!1,scrubbing:r.scrubbing});const e=m.resourceFromAttributes({[c.ATTR_BROWSER_LANGUAGE]:navigator.language,[i.ATTR_SERVICE_NAME]:r.serviceName??"logfire-browser",[i.ATTR_SERVICE_VERSION]:r.serviceVersion??"0.0.1",[i.ATTR_TELEMETRY_SDK_LANGUAGE]:i.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS,[i.ATTR_TELEMETRY_SDK_NAME]:"logfire-browser",...r.environment?{[c.ATTR_DEPLOYMENT_ENVIRONMENT_NAME]:r.environment}:{},[i.ATTR_TELEMETRY_SDK_VERSION]:"0.14.2",...navigator.userAgentData?{[c.ATTR_BROWSER_BRANDS]:navigator.userAgentData.brands.map(g=>`${g.brand} ${g.version}`),[c.ATTR_BROWSER_MOBILE]:navigator.userAgentData.mobile,[c.ATTR_BROWSER_PLATFORM]:navigator.userAgentData.platform}:{[i.ATTR_USER_AGENT_ORIGINAL]:navigator.userAgent}});s.diag.info("logfire-browser: starting");const t=(f=r.sampling)==null?void 0:f.head,a=t!==void 0&&t<1?new l.ParentBasedSampler({root:new l.TraceIdRatioBasedSampler(t)}):void 0;let n=new D(new l.BatchSpanProcessor(new _.OTLPTraceExporter({...r.traceExporterConfig,headers:async()=>{var g;return P((g=r.traceExporterConfig)==null?void 0:g.headers,r.traceExporterHeaders??F)},url:r.traceUrl}),r.batchSpanProcessorConfig),!!r.console);(b=r.sampling)!=null&&b.tail&&(n=new o.TailSamplingProcessor(n,r.sampling.tail));const u=new l.WebTracerProvider({idGenerator:new o.ULIDGenerator,resource:e,...a?{sampler:a}:{},spanProcessors:[n]});u.register({contextManager:r.contextManager??new l.StackContextManager});const d=w.registerInstrumentations({instrumentations:r.instrumentations??[],tracerProvider:u});return async()=>{s.diag.info("logfire-browser: shutting down"),d(),await u.forceFlush(),await u.shutdown(),s.diag.info("logfire-browser: shut down complete")}}const x={configure:L,configureLogfireApi:o.configureLogfireApi,debug:o.debug,DiagLogLevel:s.DiagLogLevel,error:o.error,fatal:o.fatal,info:o.info,Level:o.Level,log:o.log,logfireApiConfig:o.logfireApiConfig,LogfireAttributeScrubber:o.LogfireAttributeScrubber,NoopAttributeScrubber:o.NoopAttributeScrubber,notice:o.notice,reportError:o.reportError,resolveBaseUrl:o.resolveBaseUrl,resolveSendToLogfire:o.resolveSendToLogfire,serializeAttributes:o.serializeAttributes,span:o.span,startSpan:o.startSpan,trace:o.trace,ULIDGenerator:o.ULIDGenerator,warning:o.warning};Object.defineProperty(exports,"DiagLogLevel",{enumerable:!0,get:()=>s.DiagLogLevel});exports.configure=L;exports.default=x;Object.keys(o).forEach(r=>{r!=="default"&&!Object.prototype.hasOwnProperty.call(exports,r)&&Object.defineProperty(exports,r,{enumerable:!0,get:()=>o[r]})});
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { DiagLogLevel as
|
|
5
|
-
import { DiagLogLevel as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var R = (r, e, t) => e in r ? S(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var u = (r, e, t) => R(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { DiagLogLevel as w, diag as c, DiagConsoleLogger as _ } from "@opentelemetry/api";
|
|
5
|
+
import { DiagLogLevel as Ce } from "@opentelemetry/api";
|
|
6
|
+
import { OTLPTraceExporter as b } from "@opentelemetry/exporter-trace-otlp-http";
|
|
7
|
+
import { registerInstrumentations as p } from "@opentelemetry/instrumentation";
|
|
8
|
+
import { resourceFromAttributes as h } from "@opentelemetry/resources";
|
|
9
|
+
import { SimpleSpanProcessor as L, ParentBasedSampler as v, TraceIdRatioBasedSampler as x, BatchSpanProcessor as F, WebTracerProvider as C, StackContextManager as D } from "@opentelemetry/sdk-trace-web";
|
|
10
|
+
import { TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS as N, ATTR_USER_AGENT_ORIGINAL as P, ATTR_TELEMETRY_SDK_VERSION as I, ATTR_TELEMETRY_SDK_NAME as M, ATTR_TELEMETRY_SDK_LANGUAGE as B, ATTR_SERVICE_VERSION as O, ATTR_SERVICE_NAME as G } from "@opentelemetry/semantic-conventions";
|
|
11
|
+
import { ATTR_HTTP_URL as E, ATTR_BROWSER_PLATFORM as U, ATTR_BROWSER_MOBILE as $, ATTR_BROWSER_BRANDS as k, ATTR_DEPLOYMENT_ENVIRONMENT_NAME as y, ATTR_BROWSER_LANGUAGE as V } from "@opentelemetry/semantic-conventions/incubating";
|
|
12
|
+
import { warning as W, ULIDGenerator as m, trace as Y, startSpan as H, span as K, serializeAttributes as z, resolveSendToLogfire as J, resolveBaseUrl as X, reportError as j, notice as q, NoopAttributeScrubber as Q, LogfireAttributeScrubber as Z, logfireApiConfig as ee, log as re, Level as te, info as oe, fatal as ne, error as ae, debug as ie, configureLogfireApi as A, TailSamplingProcessor as se } from "logfire";
|
|
12
13
|
export * from "logfire";
|
|
13
|
-
import { hrTimeToMicroseconds as
|
|
14
|
-
|
|
15
|
-
import { createOtlpXhrExportDelegate as ge } from "@opentelemetry/otlp-exporter-base/browser-http";
|
|
16
|
-
import { JsonTraceSerializer as fe } from "@opentelemetry/otlp-transformer";
|
|
17
|
-
const m = "target_xpath", Ee = "event_type", me = {
|
|
14
|
+
import { hrTimeToMicroseconds as f, ExportResultCode as ce } from "@opentelemetry/core";
|
|
15
|
+
const d = "target_xpath", le = "event_type", ue = {
|
|
18
16
|
1: "trace",
|
|
19
17
|
5: "debug",
|
|
20
18
|
9: "info",
|
|
@@ -22,7 +20,7 @@ const m = "target_xpath", Ee = "event_type", me = {
|
|
|
22
20
|
13: "warning",
|
|
23
21
|
17: "error",
|
|
24
22
|
21: "fatal"
|
|
25
|
-
},
|
|
23
|
+
}, T = {
|
|
26
24
|
debug: "#E3E3E3",
|
|
27
25
|
error: "#EA4335",
|
|
28
26
|
fatal: "#EA4335",
|
|
@@ -38,9 +36,9 @@ const m = "target_xpath", Ee = "event_type", me = {
|
|
|
38
36
|
trace: "#E3E3E3",
|
|
39
37
|
warning: "#EFB77A"
|
|
40
38
|
};
|
|
41
|
-
class
|
|
42
|
-
export(e,
|
|
43
|
-
this.sendSpans(e,
|
|
39
|
+
class ge {
|
|
40
|
+
export(e, t) {
|
|
41
|
+
this.sendSpans(e, t);
|
|
44
42
|
}
|
|
45
43
|
forceFlush() {
|
|
46
44
|
return Promise.resolve();
|
|
@@ -53,10 +51,10 @@ class de {
|
|
|
53
51
|
* @param span
|
|
54
52
|
*/
|
|
55
53
|
exportInfo(e) {
|
|
56
|
-
var
|
|
54
|
+
var t;
|
|
57
55
|
return {
|
|
58
56
|
attributes: e.attributes,
|
|
59
|
-
duration:
|
|
57
|
+
duration: f(e.duration),
|
|
60
58
|
events: e.events,
|
|
61
59
|
id: e.spanContext().spanId,
|
|
62
60
|
instrumentationScope: e.instrumentationScope,
|
|
@@ -68,162 +66,149 @@ class de {
|
|
|
68
66
|
attributes: e.resource.attributes
|
|
69
67
|
},
|
|
70
68
|
status: e.status,
|
|
71
|
-
timestamp:
|
|
69
|
+
timestamp: f(e.startTime),
|
|
72
70
|
traceId: e.spanContext().traceId,
|
|
73
|
-
traceState: (
|
|
71
|
+
traceState: (t = e.spanContext().traceState) == null ? void 0 : t.serialize()
|
|
74
72
|
};
|
|
75
73
|
}
|
|
76
|
-
sendSpans(e,
|
|
74
|
+
sendSpans(e, t) {
|
|
77
75
|
for (const n of e) {
|
|
78
|
-
const o =
|
|
76
|
+
const o = ue[n.attributes["logfire.level_num"]] ?? "info", { attributes: a, name: l, ...s } = this.exportInfo(n);
|
|
79
77
|
console.log(
|
|
80
78
|
`%cLogfire %c${o}`,
|
|
81
79
|
"background-color: #E520E9; color: #FFFFFF",
|
|
82
|
-
`background-color: ${
|
|
83
|
-
|
|
80
|
+
`background-color: ${T[`on-${o}`]}; color: ${T[o]}`,
|
|
81
|
+
l,
|
|
84
82
|
a,
|
|
85
|
-
|
|
83
|
+
s
|
|
86
84
|
);
|
|
87
85
|
}
|
|
88
|
-
|
|
86
|
+
t && t({ code: ce.SUCCESS });
|
|
89
87
|
}
|
|
90
88
|
}
|
|
91
|
-
class
|
|
92
|
-
constructor(e,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
class Ee {
|
|
90
|
+
constructor(e, t) {
|
|
91
|
+
u(this, "console");
|
|
92
|
+
u(this, "wrapped");
|
|
93
|
+
t && (this.console = new L(new ge())), this.wrapped = e;
|
|
96
94
|
}
|
|
97
95
|
async forceFlush() {
|
|
98
96
|
var e;
|
|
99
97
|
return await ((e = this.console) == null ? void 0 : e.forceFlush()), this.wrapped.forceFlush();
|
|
100
98
|
}
|
|
101
99
|
onEnd(e) {
|
|
102
|
-
var
|
|
103
|
-
(
|
|
100
|
+
var t;
|
|
101
|
+
(t = this.console) == null || t.onEnd(e), this.wrapped.onEnd(e);
|
|
104
102
|
}
|
|
105
|
-
onStart(e,
|
|
103
|
+
onStart(e, t) {
|
|
106
104
|
var n;
|
|
107
|
-
if (
|
|
108
|
-
const o = new URL(e.attributes[
|
|
105
|
+
if (E in e.attributes) {
|
|
106
|
+
const o = new URL(e.attributes[E]);
|
|
109
107
|
Reflect.set(e, "name", `${e.name} ${o.pathname}`);
|
|
110
108
|
}
|
|
111
|
-
|
|
109
|
+
d in e.attributes && Reflect.set(e, "name", `${e.attributes[le] ?? "unknown"} ${e.attributes[d] ?? ""}`), (n = this.console) == null || n.onStart(e, t), this.wrapped.onStart(e, t);
|
|
112
110
|
}
|
|
113
111
|
async shutdown() {
|
|
114
112
|
var e;
|
|
115
113
|
return await ((e = this.console) == null ? void 0 : e.shutdown()), this.wrapped.shutdown();
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
|
-
|
|
119
|
-
constructor(e, r) {
|
|
120
|
-
const o = {
|
|
121
|
-
...le(
|
|
122
|
-
{
|
|
123
|
-
compression: e.compression,
|
|
124
|
-
concurrencyLimit: e.concurrencyLimit,
|
|
125
|
-
timeoutMillis: e.timeoutMillis
|
|
126
|
-
},
|
|
127
|
-
{},
|
|
128
|
-
ue()
|
|
129
|
-
),
|
|
130
|
-
agentOptions: { keepAlive: !0 },
|
|
131
|
-
headers: async () => ({
|
|
132
|
-
"Content-Type": "application/json",
|
|
133
|
-
...typeof e.headers == "function" ? await e.headers() : e.headers ?? {},
|
|
134
|
-
...(r == null ? void 0 : r()) ?? {}
|
|
135
|
-
}),
|
|
136
|
-
url: e.url ?? "http://localhost:4318/v1/traces"
|
|
137
|
-
};
|
|
138
|
-
super(ge(o, fe));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function he() {
|
|
116
|
+
function fe() {
|
|
142
117
|
return {};
|
|
143
118
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
119
|
+
async function de(r, e) {
|
|
120
|
+
return {
|
|
121
|
+
...typeof r == "function" ? await r() : r ?? {},
|
|
122
|
+
...e()
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function Te(r) {
|
|
126
|
+
var s, g;
|
|
127
|
+
r.diagLogLevel !== void 0 && c.setLogger(new _(), r.diagLogLevel), A({
|
|
128
|
+
errorFingerprinting: r.errorFingerprinting ?? !1,
|
|
129
|
+
scrubbing: r.scrubbing
|
|
149
130
|
});
|
|
150
|
-
const e =
|
|
151
|
-
[
|
|
152
|
-
[
|
|
153
|
-
[O]:
|
|
154
|
-
[
|
|
131
|
+
const e = h({
|
|
132
|
+
[V]: navigator.language,
|
|
133
|
+
[G]: r.serviceName ?? "logfire-browser",
|
|
134
|
+
[O]: r.serviceVersion ?? "0.0.1",
|
|
135
|
+
[B]: N,
|
|
155
136
|
[M]: "logfire-browser",
|
|
156
|
-
...
|
|
137
|
+
...r.environment ? { [y]: r.environment } : {},
|
|
157
138
|
// eslint-disable-next-line no-undef
|
|
158
|
-
[
|
|
139
|
+
[I]: "0.14.2",
|
|
159
140
|
...navigator.userAgentData ? {
|
|
160
|
-
[
|
|
161
|
-
[
|
|
162
|
-
[
|
|
141
|
+
[k]: navigator.userAgentData.brands.map((i) => `${i.brand} ${i.version}`),
|
|
142
|
+
[$]: navigator.userAgentData.mobile,
|
|
143
|
+
[U]: navigator.userAgentData.platform
|
|
163
144
|
} : {
|
|
164
|
-
[
|
|
145
|
+
[P]: navigator.userAgent
|
|
165
146
|
}
|
|
166
147
|
});
|
|
167
|
-
|
|
168
|
-
const
|
|
169
|
-
let o = new
|
|
170
|
-
new
|
|
171
|
-
new
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
148
|
+
c.info("logfire-browser: starting");
|
|
149
|
+
const t = (s = r.sampling) == null ? void 0 : s.head, n = t !== void 0 && t < 1 ? new v({ root: new x(t) }) : void 0;
|
|
150
|
+
let o = new Ee(
|
|
151
|
+
new F(
|
|
152
|
+
new b({
|
|
153
|
+
...r.traceExporterConfig,
|
|
154
|
+
headers: async () => {
|
|
155
|
+
var i;
|
|
156
|
+
return de((i = r.traceExporterConfig) == null ? void 0 : i.headers, r.traceExporterHeaders ?? fe);
|
|
157
|
+
},
|
|
158
|
+
url: r.traceUrl
|
|
159
|
+
}),
|
|
160
|
+
r.batchSpanProcessorConfig
|
|
176
161
|
),
|
|
177
|
-
!!
|
|
162
|
+
!!r.console
|
|
178
163
|
);
|
|
179
|
-
(
|
|
164
|
+
(g = r.sampling) != null && g.tail && (o = new se(
|
|
180
165
|
o,
|
|
181
|
-
|
|
166
|
+
r.sampling.tail
|
|
182
167
|
));
|
|
183
168
|
const a = new C({
|
|
184
|
-
idGenerator: new
|
|
169
|
+
idGenerator: new m(),
|
|
185
170
|
resource: e,
|
|
186
171
|
...n ? { sampler: n } : {},
|
|
187
172
|
spanProcessors: [o]
|
|
188
173
|
});
|
|
189
174
|
a.register({
|
|
190
|
-
contextManager:
|
|
175
|
+
contextManager: r.contextManager ?? new D()
|
|
191
176
|
});
|
|
192
|
-
const
|
|
193
|
-
instrumentations:
|
|
177
|
+
const l = p({
|
|
178
|
+
instrumentations: r.instrumentations ?? [],
|
|
194
179
|
tracerProvider: a
|
|
195
180
|
});
|
|
196
181
|
return async () => {
|
|
197
|
-
|
|
182
|
+
c.info("logfire-browser: shutting down"), l(), await a.forceFlush(), await a.shutdown(), c.info("logfire-browser: shut down complete");
|
|
198
183
|
};
|
|
199
184
|
}
|
|
200
|
-
const
|
|
201
|
-
configure:
|
|
202
|
-
configureLogfireApi:
|
|
203
|
-
debug:
|
|
204
|
-
DiagLogLevel:
|
|
205
|
-
error:
|
|
206
|
-
fatal:
|
|
207
|
-
info:
|
|
185
|
+
const ve = {
|
|
186
|
+
configure: Te,
|
|
187
|
+
configureLogfireApi: A,
|
|
188
|
+
debug: ie,
|
|
189
|
+
DiagLogLevel: w,
|
|
190
|
+
error: ae,
|
|
191
|
+
fatal: ne,
|
|
192
|
+
info: oe,
|
|
208
193
|
// Re-export all from logfire
|
|
209
|
-
Level:
|
|
210
|
-
log:
|
|
211
|
-
logfireApiConfig:
|
|
212
|
-
LogfireAttributeScrubber:
|
|
213
|
-
NoopAttributeScrubber:
|
|
214
|
-
notice:
|
|
215
|
-
reportError:
|
|
216
|
-
resolveBaseUrl:
|
|
217
|
-
resolveSendToLogfire:
|
|
194
|
+
Level: te,
|
|
195
|
+
log: re,
|
|
196
|
+
logfireApiConfig: ee,
|
|
197
|
+
LogfireAttributeScrubber: Z,
|
|
198
|
+
NoopAttributeScrubber: Q,
|
|
199
|
+
notice: q,
|
|
200
|
+
reportError: j,
|
|
201
|
+
resolveBaseUrl: X,
|
|
202
|
+
resolveSendToLogfire: J,
|
|
218
203
|
serializeAttributes: z,
|
|
219
204
|
span: K,
|
|
220
|
-
startSpan:
|
|
221
|
-
trace:
|
|
222
|
-
ULIDGenerator:
|
|
223
|
-
warning:
|
|
205
|
+
startSpan: H,
|
|
206
|
+
trace: Y,
|
|
207
|
+
ULIDGenerator: m,
|
|
208
|
+
warning: W
|
|
224
209
|
};
|
|
225
210
|
export {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
211
|
+
Ce as DiagLogLevel,
|
|
212
|
+
Te as configure,
|
|
213
|
+
ve as default
|
|
229
214
|
};
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"stats",
|
|
26
26
|
"monitoring"
|
|
27
27
|
],
|
|
28
|
-
"version": "0.14.
|
|
28
|
+
"version": "0.14.2",
|
|
29
29
|
"type": "module",
|
|
30
30
|
"main": "./dist/index.cjs",
|
|
31
31
|
"module": "./dist/index.js",
|
|
@@ -44,21 +44,19 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@opentelemetry/api": "^1.9.0",
|
|
47
|
-
"@opentelemetry/core": "^2.0
|
|
48
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
49
|
-
"@opentelemetry/instrumentation": "^0.
|
|
50
|
-
"@opentelemetry/
|
|
51
|
-
"
|
|
52
|
-
"@opentelemetry/resources": "^2.0.1",
|
|
53
|
-
"logfire": "0.13.0"
|
|
47
|
+
"@opentelemetry/core": "^2.7.0",
|
|
48
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.215.0",
|
|
49
|
+
"@opentelemetry/instrumentation": "^0.215.0",
|
|
50
|
+
"@opentelemetry/resources": "^2.7.0",
|
|
51
|
+
"logfire": "0.13.2"
|
|
54
52
|
},
|
|
55
53
|
"peerDependencies": {
|
|
56
|
-
"@opentelemetry/sdk-trace-web": "^2.0
|
|
57
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
54
|
+
"@opentelemetry/sdk-trace-web": "^2.7.0",
|
|
55
|
+
"@opentelemetry/semantic-conventions": "^1.40.0"
|
|
58
56
|
},
|
|
59
57
|
"devDependencies": {
|
|
60
|
-
"@opentelemetry/sdk-trace-web": "^2.0
|
|
61
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
58
|
+
"@opentelemetry/sdk-trace-web": "^2.7.0",
|
|
59
|
+
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
62
60
|
"user-agent-data-types": "^0.4.2"
|
|
63
61
|
},
|
|
64
62
|
"files": [
|