@owlpane/browser 0.1.3 → 0.1.4

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/log-otlp.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { encodeAttrs, unixNano } from "./otlp.js";
2
- const REPLAY_SCOPE = { name: "@owlpane/browser-replay", version: "0.1.3" };
2
+ const REPLAY_SCOPE = { name: "@owlpane/browser-replay", version: "0.1.4" };
3
3
  export function buildLogsRequestBody(resourceAttrs, records) {
4
4
  const resource = JSON.stringify({ attributes: encodeAttrs(resourceAttrs) });
5
5
  const logs = records.map((r) => JSON.stringify({
package/dist/tracer.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Env } from "./env.js";
2
2
  import { RandomBytes } from "./ids.js";
3
3
  import type { Attrs, SpanData, SpanEvent } from "./otlp.js";
4
- export declare const VERSION = "0.1.3";
4
+ export declare const VERSION = "0.1.4";
5
5
  export type ResolvedOptions = {
6
6
  endpoint: string;
7
7
  projectKey: string;
package/dist/tracer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defaultRandomBytes, newSpanId, newTraceId } from "./ids.js";
2
- export const VERSION = "0.1.3";
2
+ export const VERSION = "0.1.4";
3
3
  export function createTracer(env, opts, emit, sessionId, pageUrl, pageAttrs = {}) {
4
4
  const rand = env.randomBytes ?? defaultRandomBytes();
5
5
  const nav = env.navigator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlpane/browser",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Owlpane real-user-monitoring SDK for browsers: page load, Web Vitals, JS errors, fetch/XHR spans, optional rrweb DOM replay, and W3C trace propagation over OTLP/HTTP JSON.",
5
5
  "license": "MIT",
6
6
  "repository": {