autotel-backends 2.14.3 → 2.14.5

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.
@@ -4,11 +4,11 @@ import { LogRecordProcessor } from "@opentelemetry/sdk-logs";
4
4
  /**
5
5
  * Datadog site regions
6
6
  */
7
- type DatadogSite = 'datadoghq.com' | 'datadoghq.eu' | 'us3.datadoghq.com' | 'us5.datadoghq.com' | 'ap1.datadoghq.com' | 'ddog-gov.com';
7
+ export type DatadogSite = 'datadoghq.com' | 'datadoghq.eu' | 'us3.datadoghq.com' | 'us5.datadoghq.com' | 'ap1.datadoghq.com' | 'ddog-gov.com';
8
8
  /**
9
9
  * Configuration options for Datadog preset
10
10
  */
11
- interface DatadogPresetConfig {
11
+ export interface DatadogPresetConfig {
12
12
  /**
13
13
  * Datadog API key (required for direct cloud ingestion).
14
14
  * Not needed if using local Datadog Agent (useAgent: true).
@@ -157,6 +157,5 @@ interface DatadogPresetConfig {
157
157
  * }));
158
158
  * ```
159
159
  */
160
- declare function createDatadogConfig(config: DatadogPresetConfig): AutotelConfig;
161
- //#endregion
162
- export { DatadogPresetConfig, DatadogSite, createDatadogConfig };
160
+ export declare function createDatadogConfig(config: DatadogPresetConfig): AutotelConfig;
161
+ //#endregion
package/dist/datadog.d.ts CHANGED
@@ -4,11 +4,11 @@ import { LogRecordProcessor } from "@opentelemetry/sdk-logs";
4
4
  /**
5
5
  * Datadog site regions
6
6
  */
7
- type DatadogSite = 'datadoghq.com' | 'datadoghq.eu' | 'us3.datadoghq.com' | 'us5.datadoghq.com' | 'ap1.datadoghq.com' | 'ddog-gov.com';
7
+ export type DatadogSite = 'datadoghq.com' | 'datadoghq.eu' | 'us3.datadoghq.com' | 'us5.datadoghq.com' | 'ap1.datadoghq.com' | 'ddog-gov.com';
8
8
  /**
9
9
  * Configuration options for Datadog preset
10
10
  */
11
- interface DatadogPresetConfig {
11
+ export interface DatadogPresetConfig {
12
12
  /**
13
13
  * Datadog API key (required for direct cloud ingestion).
14
14
  * Not needed if using local Datadog Agent (useAgent: true).
@@ -157,6 +157,5 @@ interface DatadogPresetConfig {
157
157
  * }));
158
158
  * ```
159
159
  */
160
- declare function createDatadogConfig(config: DatadogPresetConfig): AutotelConfig;
161
- //#endregion
162
- export { DatadogPresetConfig, DatadogSite, createDatadogConfig };
160
+ export declare function createDatadogConfig(config: DatadogPresetConfig): AutotelConfig;
161
+ //#endregion
@@ -3,7 +3,7 @@ import { AutotelConfig } from "autotel";
3
3
  /**
4
4
  * Configuration options for Google Cloud preset
5
5
  */
6
- interface GoogleCloudPresetConfig {
6
+ export interface GoogleCloudPresetConfig {
7
7
  /**
8
8
  * Google Cloud project ID (required for direct export).
9
9
  * Used for quota and resource attribution. Set GOOGLE_CLOUD_PROJECT or
@@ -64,6 +64,5 @@ interface GoogleCloudPresetConfig {
64
64
  * @param config - Google Cloud preset options
65
65
  * @returns AutotelConfig ready to pass to init()
66
66
  */
67
- declare function createGoogleCloudConfig(config: GoogleCloudPresetConfig): AutotelConfig;
68
- //#endregion
69
- export { GoogleCloudPresetConfig, createGoogleCloudConfig };
67
+ export declare function createGoogleCloudConfig(config: GoogleCloudPresetConfig): AutotelConfig;
68
+ //#endregion
@@ -3,7 +3,7 @@ import { AutotelConfig } from "autotel";
3
3
  /**
4
4
  * Configuration options for Google Cloud preset
5
5
  */
6
- interface GoogleCloudPresetConfig {
6
+ export interface GoogleCloudPresetConfig {
7
7
  /**
8
8
  * Google Cloud project ID (required for direct export).
9
9
  * Used for quota and resource attribution. Set GOOGLE_CLOUD_PROJECT or
@@ -64,6 +64,5 @@ interface GoogleCloudPresetConfig {
64
64
  * @param config - Google Cloud preset options
65
65
  * @returns AutotelConfig ready to pass to init()
66
66
  */
67
- declare function createGoogleCloudConfig(config: GoogleCloudPresetConfig): AutotelConfig;
68
- //#endregion
69
- export { GoogleCloudPresetConfig, createGoogleCloudConfig };
67
+ export declare function createGoogleCloudConfig(config: GoogleCloudPresetConfig): AutotelConfig;
68
+ //#endregion
@@ -4,7 +4,7 @@ import { LogRecordProcessor } from "@opentelemetry/sdk-logs";
4
4
  /**
5
5
  * Configuration options for Grafana Cloud preset
6
6
  */
7
- interface GrafanaPresetConfig {
7
+ export interface GrafanaPresetConfig {
8
8
  /**
9
9
  * OTLP gateway endpoint (required).
10
10
  * From Grafana Cloud: Stack → Connections → OpenTelemetry → Configure.
@@ -58,6 +58,5 @@ interface GrafanaPresetConfig {
58
58
  * @param config - Grafana Cloud configuration options
59
59
  * @returns AutotelConfig ready to pass to init()
60
60
  */
61
- declare function createGrafanaConfig(config: GrafanaPresetConfig): AutotelConfig;
62
- //#endregion
63
- export { GrafanaPresetConfig, createGrafanaConfig };
61
+ export declare function createGrafanaConfig(config: GrafanaPresetConfig): AutotelConfig;
62
+ //#endregion
package/dist/grafana.d.ts CHANGED
@@ -4,7 +4,7 @@ import { LogRecordProcessor } from "@opentelemetry/sdk-logs";
4
4
  /**
5
5
  * Configuration options for Grafana Cloud preset
6
6
  */
7
- interface GrafanaPresetConfig {
7
+ export interface GrafanaPresetConfig {
8
8
  /**
9
9
  * OTLP gateway endpoint (required).
10
10
  * From Grafana Cloud: Stack → Connections → OpenTelemetry → Configure.
@@ -58,6 +58,5 @@ interface GrafanaPresetConfig {
58
58
  * @param config - Grafana Cloud configuration options
59
59
  * @returns AutotelConfig ready to pass to init()
60
60
  */
61
- declare function createGrafanaConfig(config: GrafanaPresetConfig): AutotelConfig;
62
- //#endregion
63
- export { GrafanaPresetConfig, createGrafanaConfig };
61
+ export declare function createGrafanaConfig(config: GrafanaPresetConfig): AutotelConfig;
62
+ //#endregion
@@ -3,7 +3,7 @@ import { AutotelConfig } from "autotel";
3
3
  /**
4
4
  * Configuration options for Honeycomb preset
5
5
  */
6
- interface HoneycombPresetConfig {
6
+ export interface HoneycombPresetConfig {
7
7
  /**
8
8
  * Honeycomb API key (required).
9
9
  *
@@ -58,6 +58,5 @@ interface HoneycombPresetConfig {
58
58
  */
59
59
  sampleRate?: number;
60
60
  }
61
- declare function createHoneycombConfig(config: HoneycombPresetConfig): AutotelConfig;
62
- //#endregion
63
- export { HoneycombPresetConfig, createHoneycombConfig };
61
+ export declare function createHoneycombConfig(config: HoneycombPresetConfig): AutotelConfig;
62
+ //#endregion
@@ -3,7 +3,7 @@ import { AutotelConfig } from "autotel";
3
3
  /**
4
4
  * Configuration options for Honeycomb preset
5
5
  */
6
- interface HoneycombPresetConfig {
6
+ export interface HoneycombPresetConfig {
7
7
  /**
8
8
  * Honeycomb API key (required).
9
9
  *
@@ -58,6 +58,5 @@ interface HoneycombPresetConfig {
58
58
  */
59
59
  sampleRate?: number;
60
60
  }
61
- declare function createHoneycombConfig(config: HoneycombPresetConfig): AutotelConfig;
62
- //#endregion
63
- export { HoneycombPresetConfig, createHoneycombConfig };
61
+ export declare function createHoneycombConfig(config: HoneycombPresetConfig): AutotelConfig;
62
+ //#endregion
@@ -2,14 +2,14 @@ import { AutotelConfig } from "autotel";
2
2
  //#region src/langfuse.d.ts
3
3
  /** Langfuse Cloud regions and their base URLs. */
4
4
  declare const REGION_BASE_URLS: {
5
- readonly eu: "https://cloud.langfuse.com";
6
- readonly us: "https://us.cloud.langfuse.com";
5
+ readonly eu: 'https://cloud.langfuse.com';
6
+ readonly us: 'https://us.cloud.langfuse.com';
7
7
  };
8
- type LangfuseRegion = keyof typeof REGION_BASE_URLS;
8
+ export type LangfuseRegion = keyof typeof REGION_BASE_URLS;
9
9
  /**
10
10
  * Configuration options for the Langfuse preset
11
11
  */
12
- interface LangfusePresetConfig {
12
+ export interface LangfusePresetConfig {
13
13
  /**
14
14
  * Langfuse public key, `pk-lf-...` (required).
15
15
  * Found under Settings → API Keys.
@@ -63,6 +63,5 @@ interface LangfusePresetConfig {
63
63
  * @param config - Langfuse-specific configuration options
64
64
  * @returns AutotelConfig ready to pass to init()
65
65
  */
66
- declare function createLangfuseConfig(config: LangfusePresetConfig): AutotelConfig;
67
- //#endregion
68
- export { LangfusePresetConfig, LangfuseRegion, createLangfuseConfig };
66
+ export declare function createLangfuseConfig(config: LangfusePresetConfig): AutotelConfig;
67
+ //#endregion
@@ -2,14 +2,14 @@ import { AutotelConfig } from "autotel";
2
2
  //#region src/langfuse.d.ts
3
3
  /** Langfuse Cloud regions and their base URLs. */
4
4
  declare const REGION_BASE_URLS: {
5
- readonly eu: "https://cloud.langfuse.com";
6
- readonly us: "https://us.cloud.langfuse.com";
5
+ readonly eu: 'https://cloud.langfuse.com';
6
+ readonly us: 'https://us.cloud.langfuse.com';
7
7
  };
8
- type LangfuseRegion = keyof typeof REGION_BASE_URLS;
8
+ export type LangfuseRegion = keyof typeof REGION_BASE_URLS;
9
9
  /**
10
10
  * Configuration options for the Langfuse preset
11
11
  */
12
- interface LangfusePresetConfig {
12
+ export interface LangfusePresetConfig {
13
13
  /**
14
14
  * Langfuse public key, `pk-lf-...` (required).
15
15
  * Found under Settings → API Keys.
@@ -63,6 +63,5 @@ interface LangfusePresetConfig {
63
63
  * @param config - Langfuse-specific configuration options
64
64
  * @returns AutotelConfig ready to pass to init()
65
65
  */
66
- declare function createLangfuseConfig(config: LangfusePresetConfig): AutotelConfig;
67
- //#endregion
68
- export { LangfusePresetConfig, LangfuseRegion, createLangfuseConfig };
66
+ export declare function createLangfuseConfig(config: LangfusePresetConfig): AutotelConfig;
67
+ //#endregion
@@ -10,14 +10,14 @@ import { AutotelConfig } from "autotel";
10
10
  * Guessing it wrong produces a bare 401 that names neither cause.
11
11
  */
12
12
  declare const REGION_ENDPOINTS: {
13
- readonly us: "https://logfire-us.pydantic.dev";
14
- readonly eu: "https://logfire-eu.pydantic.dev";
13
+ readonly us: 'https://logfire-us.pydantic.dev';
14
+ readonly eu: 'https://logfire-eu.pydantic.dev';
15
15
  };
16
- type LogfireRegion = keyof typeof REGION_ENDPOINTS;
16
+ export type LogfireRegion = keyof typeof REGION_ENDPOINTS;
17
17
  /**
18
18
  * Configuration options for the Logfire preset
19
19
  */
20
- interface LogfirePresetConfig {
20
+ export interface LogfirePresetConfig {
21
21
  /**
22
22
  * Logfire **write** token (required).
23
23
  *
@@ -71,6 +71,5 @@ interface LogfirePresetConfig {
71
71
  * @param config - Logfire-specific configuration options
72
72
  * @returns AutotelConfig ready to pass to init()
73
73
  */
74
- declare function createLogfireConfig(config: LogfirePresetConfig): AutotelConfig;
75
- //#endregion
76
- export { LogfirePresetConfig, LogfireRegion, createLogfireConfig };
74
+ export declare function createLogfireConfig(config: LogfirePresetConfig): AutotelConfig;
75
+ //#endregion
package/dist/logfire.d.ts CHANGED
@@ -10,14 +10,14 @@ import { AutotelConfig } from "autotel";
10
10
  * Guessing it wrong produces a bare 401 that names neither cause.
11
11
  */
12
12
  declare const REGION_ENDPOINTS: {
13
- readonly us: "https://logfire-us.pydantic.dev";
14
- readonly eu: "https://logfire-eu.pydantic.dev";
13
+ readonly us: 'https://logfire-us.pydantic.dev';
14
+ readonly eu: 'https://logfire-eu.pydantic.dev';
15
15
  };
16
- type LogfireRegion = keyof typeof REGION_ENDPOINTS;
16
+ export type LogfireRegion = keyof typeof REGION_ENDPOINTS;
17
17
  /**
18
18
  * Configuration options for the Logfire preset
19
19
  */
20
- interface LogfirePresetConfig {
20
+ export interface LogfirePresetConfig {
21
21
  /**
22
22
  * Logfire **write** token (required).
23
23
  *
@@ -71,6 +71,5 @@ interface LogfirePresetConfig {
71
71
  * @param config - Logfire-specific configuration options
72
72
  * @returns AutotelConfig ready to pass to init()
73
73
  */
74
- declare function createLogfireConfig(config: LogfirePresetConfig): AutotelConfig;
75
- //#endregion
76
- export { LogfirePresetConfig, LogfireRegion, createLogfireConfig };
74
+ export declare function createLogfireConfig(config: LogfirePresetConfig): AutotelConfig;
75
+ //#endregion
@@ -2,14 +2,14 @@ import { AutotelConfig } from "autotel";
2
2
  //#region src/posthog.d.ts
3
3
  /** PostHog Cloud regions and their ingest hosts. */
4
4
  declare const REGION_HOSTS: {
5
- readonly us: "https://us.i.posthog.com";
6
- readonly eu: "https://eu.i.posthog.com";
5
+ readonly us: 'https://us.i.posthog.com';
6
+ readonly eu: 'https://eu.i.posthog.com';
7
7
  };
8
- type PostHogRegion = keyof typeof REGION_HOSTS;
8
+ export type PostHogRegion = keyof typeof REGION_HOSTS;
9
9
  /**
10
10
  * Configuration options for the PostHog preset
11
11
  */
12
- interface PostHogPresetConfig {
12
+ export interface PostHogPresetConfig {
13
13
  /**
14
14
  * PostHog project API key, `phc_...` (required).
15
15
  * Found under Project Settings.
@@ -58,6 +58,5 @@ interface PostHogPresetConfig {
58
58
  * @param config - PostHog-specific configuration options
59
59
  * @returns AutotelConfig ready to pass to init()
60
60
  */
61
- declare function createPostHogConfig(config: PostHogPresetConfig): AutotelConfig;
62
- //#endregion
63
- export { PostHogPresetConfig, PostHogRegion, createPostHogConfig };
61
+ export declare function createPostHogConfig(config: PostHogPresetConfig): AutotelConfig;
62
+ //#endregion
package/dist/posthog.d.ts CHANGED
@@ -2,14 +2,14 @@ import { AutotelConfig } from "autotel";
2
2
  //#region src/posthog.d.ts
3
3
  /** PostHog Cloud regions and their ingest hosts. */
4
4
  declare const REGION_HOSTS: {
5
- readonly us: "https://us.i.posthog.com";
6
- readonly eu: "https://eu.i.posthog.com";
5
+ readonly us: 'https://us.i.posthog.com';
6
+ readonly eu: 'https://eu.i.posthog.com';
7
7
  };
8
- type PostHogRegion = keyof typeof REGION_HOSTS;
8
+ export type PostHogRegion = keyof typeof REGION_HOSTS;
9
9
  /**
10
10
  * Configuration options for the PostHog preset
11
11
  */
12
- interface PostHogPresetConfig {
12
+ export interface PostHogPresetConfig {
13
13
  /**
14
14
  * PostHog project API key, `phc_...` (required).
15
15
  * Found under Project Settings.
@@ -58,6 +58,5 @@ interface PostHogPresetConfig {
58
58
  * @param config - PostHog-specific configuration options
59
59
  * @returns AutotelConfig ready to pass to init()
60
60
  */
61
- declare function createPostHogConfig(config: PostHogPresetConfig): AutotelConfig;
62
- //#endregion
63
- export { PostHogPresetConfig, PostHogRegion, createPostHogConfig };
61
+ export declare function createPostHogConfig(config: PostHogPresetConfig): AutotelConfig;
62
+ //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-backends",
3
- "version": "2.14.3",
3
+ "version": "2.14.5",
4
4
  "description": "Vendor backend configurations for Autotel (Honeycomb, Datadog, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -72,14 +72,14 @@
72
72
  "author": "Jag Reehal <jag@jagreehal.com> (https://jagreehal.com)",
73
73
  "license": "Apache-2.0",
74
74
  "dependencies": {
75
- "autotel": "7.8.0",
76
- "@opentelemetry/exporter-logs-otlp-http": ">=0.221.0",
77
- "@opentelemetry/sdk-logs": ">=0.221.0"
75
+ "autotel": "7.10.0",
76
+ "@opentelemetry/exporter-logs-otlp-http": ">=0.222.0",
77
+ "@opentelemetry/sdk-logs": ">=0.222.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "@opentelemetry/exporter-metrics-otlp-http": ">=0.221.0",
81
- "@opentelemetry/exporter-trace-otlp-http": ">=0.221.0",
82
- "@opentelemetry/sdk-metrics": ">=2.10.0",
80
+ "@opentelemetry/exporter-metrics-otlp-http": ">=0.222.0",
81
+ "@opentelemetry/exporter-trace-otlp-http": ">=0.222.0",
82
+ "@opentelemetry/sdk-metrics": ">=2.11.0",
83
83
  "google-auth-library": ">=10.9.1"
84
84
  },
85
85
  "peerDependenciesMeta": {
@@ -97,14 +97,10 @@
97
97
  }
98
98
  },
99
99
  "devDependencies": {
100
- "@types/node": "^26.1.2",
101
- "@typescript-eslint/eslint-plugin": "^8.65.0",
102
- "@typescript-eslint/parser": "^8.65.0",
103
- "eslint-config-prettier": "^10.1.8",
104
- "eslint-plugin-unicorn": "^64.0.0",
105
- "tsdown": "^0.22.14",
106
- "typescript": "^6.0.3",
107
- "vitest": "^4.1.10"
100
+ "@types/node": "^26.6.3",
101
+ "tsdown": "^0.23.0",
102
+ "typescript": "^7.0.2",
103
+ "vitest": "^5.0.2"
108
104
  },
109
105
  "repository": {
110
106
  "type": "git",
@@ -119,8 +115,8 @@
119
115
  "build": "tsdown",
120
116
  "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run test",
121
117
  "dev": "tsdown --watch",
122
- "lint": "eslint src/**/*.ts",
123
- "lint:fix": "eslint src/**/*.ts --fix",
118
+ "lint": "oxlint -c oxlint.json --disable-nested-config src",
119
+ "lint:fix": "pnpm lint --fix",
124
120
  "format:check": "prettier --check src/**/*.ts",
125
121
  "type-check": "tsc --noEmit",
126
122
  "test": "vitest run --config vitest.unit.config.ts",