autotel-backends 2.13.5 → 2.13.6

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/README.md CHANGED
@@ -162,7 +162,7 @@ init(
162
162
 
163
163
  ### 🦔 PostHog
164
164
 
165
- [PostHog](https://posthog.com) ingests OTLP traces, logs and metrics, so product analytics and distributed traces can share a destination. (For product _events_, see `autotel-subscribers/posthog` — a separate path.)
165
+ [PostHog](https://posthog.com) ingests OTLP traces, logs and metrics, so product analytics and distributed traces can share a destination. (For product _events_, see `autotel-posthog/subscriber` — a separate path.)
166
166
 
167
167
  ```typescript
168
168
  import { createPostHogConfig } from 'autotel-backends/posthog';
@@ -1,48 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region src/honeycomb.ts
3
- /**
4
- * Create an autotel configuration optimized for Honeycomb.
5
- *
6
- * This preset handles:
7
- * - gRPC protocol configuration (Honeycomb's preferred protocol)
8
- * - Proper endpoint and authentication headers
9
- * - Dataset routing (for classic accounts)
10
- * - Unified service tagging (service, env, version)
11
- *
12
- * Honeycomb uses gRPC by default for better performance and lower overhead.
13
- * This preset automatically configures the gRPC protocol.
14
- *
15
- * @param config - Honeycomb-specific configuration options
16
- * @returns AutotelConfig ready to pass to init()
17
- *
18
- * @example Simple configuration
19
- * ```typescript
20
- * init(createHoneycombConfig({
21
- * apiKey: process.env.HONEYCOMB_API_KEY!,
22
- * service: 'my-app',
23
- * }));
24
- * ```
25
- *
26
- * @example With custom dataset and environment
27
- * ```typescript
28
- * init(createHoneycombConfig({
29
- * apiKey: process.env.HONEYCOMB_API_KEY!,
30
- * service: 'my-app',
31
- * dataset: 'production',
32
- * environment: 'production',
33
- * version: '2.1.0',
34
- * }));
35
- * ```
36
- *
37
- * @example With sample rate
38
- * ```typescript
39
- * init(createHoneycombConfig({
40
- * apiKey: process.env.HONEYCOMB_API_KEY!,
41
- * service: 'my-app',
42
- * sampleRate: 10, // Sample 10% of traces (head-based sampling)
43
- * }));
44
- * ```
45
- */
46
3
  function createHoneycombConfig(config) {
47
4
  const { apiKey, service, dataset, environment, version, endpoint = "api.honeycomb.io:443", sampleRate } = config;
48
5
  if (!apiKey) throw new Error("Honeycomb API key is required. Get your API key from: https://ui.honeycomb.io/account");
@@ -58,49 +58,6 @@ interface HoneycombPresetConfig {
58
58
  */
59
59
  sampleRate?: number;
60
60
  }
61
- /**
62
- * Create an autotel configuration optimized for Honeycomb.
63
- *
64
- * This preset handles:
65
- * - gRPC protocol configuration (Honeycomb's preferred protocol)
66
- * - Proper endpoint and authentication headers
67
- * - Dataset routing (for classic accounts)
68
- * - Unified service tagging (service, env, version)
69
- *
70
- * Honeycomb uses gRPC by default for better performance and lower overhead.
71
- * This preset automatically configures the gRPC protocol.
72
- *
73
- * @param config - Honeycomb-specific configuration options
74
- * @returns AutotelConfig ready to pass to init()
75
- *
76
- * @example Simple configuration
77
- * ```typescript
78
- * init(createHoneycombConfig({
79
- * apiKey: process.env.HONEYCOMB_API_KEY!,
80
- * service: 'my-app',
81
- * }));
82
- * ```
83
- *
84
- * @example With custom dataset and environment
85
- * ```typescript
86
- * init(createHoneycombConfig({
87
- * apiKey: process.env.HONEYCOMB_API_KEY!,
88
- * service: 'my-app',
89
- * dataset: 'production',
90
- * environment: 'production',
91
- * version: '2.1.0',
92
- * }));
93
- * ```
94
- *
95
- * @example With sample rate
96
- * ```typescript
97
- * init(createHoneycombConfig({
98
- * apiKey: process.env.HONEYCOMB_API_KEY!,
99
- * service: 'my-app',
100
- * sampleRate: 10, // Sample 10% of traces (head-based sampling)
101
- * }));
102
- * ```
103
- */
104
61
  declare function createHoneycombConfig(config: HoneycombPresetConfig): AutotelConfig;
105
62
  //#endregion
106
63
  export { HoneycombPresetConfig, createHoneycombConfig };
@@ -58,49 +58,6 @@ interface HoneycombPresetConfig {
58
58
  */
59
59
  sampleRate?: number;
60
60
  }
61
- /**
62
- * Create an autotel configuration optimized for Honeycomb.
63
- *
64
- * This preset handles:
65
- * - gRPC protocol configuration (Honeycomb's preferred protocol)
66
- * - Proper endpoint and authentication headers
67
- * - Dataset routing (for classic accounts)
68
- * - Unified service tagging (service, env, version)
69
- *
70
- * Honeycomb uses gRPC by default for better performance and lower overhead.
71
- * This preset automatically configures the gRPC protocol.
72
- *
73
- * @param config - Honeycomb-specific configuration options
74
- * @returns AutotelConfig ready to pass to init()
75
- *
76
- * @example Simple configuration
77
- * ```typescript
78
- * init(createHoneycombConfig({
79
- * apiKey: process.env.HONEYCOMB_API_KEY!,
80
- * service: 'my-app',
81
- * }));
82
- * ```
83
- *
84
- * @example With custom dataset and environment
85
- * ```typescript
86
- * init(createHoneycombConfig({
87
- * apiKey: process.env.HONEYCOMB_API_KEY!,
88
- * service: 'my-app',
89
- * dataset: 'production',
90
- * environment: 'production',
91
- * version: '2.1.0',
92
- * }));
93
- * ```
94
- *
95
- * @example With sample rate
96
- * ```typescript
97
- * init(createHoneycombConfig({
98
- * apiKey: process.env.HONEYCOMB_API_KEY!,
99
- * service: 'my-app',
100
- * sampleRate: 10, // Sample 10% of traces (head-based sampling)
101
- * }));
102
- * ```
103
- */
104
61
  declare function createHoneycombConfig(config: HoneycombPresetConfig): AutotelConfig;
105
62
  //#endregion
106
63
  export { HoneycombPresetConfig, createHoneycombConfig };
package/dist/honeycomb.js CHANGED
@@ -1,47 +1,4 @@
1
1
  //#region src/honeycomb.ts
2
- /**
3
- * Create an autotel configuration optimized for Honeycomb.
4
- *
5
- * This preset handles:
6
- * - gRPC protocol configuration (Honeycomb's preferred protocol)
7
- * - Proper endpoint and authentication headers
8
- * - Dataset routing (for classic accounts)
9
- * - Unified service tagging (service, env, version)
10
- *
11
- * Honeycomb uses gRPC by default for better performance and lower overhead.
12
- * This preset automatically configures the gRPC protocol.
13
- *
14
- * @param config - Honeycomb-specific configuration options
15
- * @returns AutotelConfig ready to pass to init()
16
- *
17
- * @example Simple configuration
18
- * ```typescript
19
- * init(createHoneycombConfig({
20
- * apiKey: process.env.HONEYCOMB_API_KEY!,
21
- * service: 'my-app',
22
- * }));
23
- * ```
24
- *
25
- * @example With custom dataset and environment
26
- * ```typescript
27
- * init(createHoneycombConfig({
28
- * apiKey: process.env.HONEYCOMB_API_KEY!,
29
- * service: 'my-app',
30
- * dataset: 'production',
31
- * environment: 'production',
32
- * version: '2.1.0',
33
- * }));
34
- * ```
35
- *
36
- * @example With sample rate
37
- * ```typescript
38
- * init(createHoneycombConfig({
39
- * apiKey: process.env.HONEYCOMB_API_KEY!,
40
- * service: 'my-app',
41
- * sampleRate: 10, // Sample 10% of traces (head-based sampling)
42
- * }));
43
- * ```
44
- */
45
2
  function createHoneycombConfig(config) {
46
3
  const { apiKey, service, dataset, environment, version, endpoint = "api.honeycomb.io:443", sampleRate } = config;
47
4
  if (!apiKey) throw new Error("Honeycomb API key is required. Get your API key from: https://ui.honeycomb.io/account");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-backends",
3
- "version": "2.13.5",
3
+ "version": "2.13.6",
4
4
  "description": "Vendor backend configurations for Autotel (Honeycomb, Datadog, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -72,7 +72,7 @@
72
72
  "dependencies": {
73
73
  "@opentelemetry/exporter-logs-otlp-http": ">=0.221.0",
74
74
  "@opentelemetry/sdk-logs": ">=0.221.0",
75
- "autotel": "6.5.0"
75
+ "autotel": "7.0.0"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "@opentelemetry/exporter-metrics-otlp-http": ">=0.221.0",