@vercel/otel 1.13.1 → 1.14.1

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.
@@ -8,9 +8,17 @@ export declare const HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = "http.response_
8
8
  export declare const NET_PEER_PORT = "net.peer.port";
9
9
  export declare const NET_PEER_NAME = "net.peer.name";
10
10
  export declare const CLOUD_REGION = "cloud.region";
11
+ /** @deprecated Use DEPLOYMENT_ENVIRONMENT_NAME instead. */
11
12
  export declare const DEPLOYMENT_ENVIRONMENT = "deployment.environment";
13
+ export declare const DEPLOYMENT_ENVIRONMENT_NAME = "deployment.environment.name";
14
+ export declare const DEPLOYMENT_ID = "deployment.id";
12
15
  export declare const CLOUD_PROVIDER = "cloud.provider";
13
16
  export declare const PROCESS_RUNTIME_NAME = "process.runtime.name";
17
+ export declare const VCS_REF_HEAD_NAME = "vcs.ref.head.name";
18
+ export declare const VCS_REF_HEAD_REVISION = "vcs.ref.head.revision";
19
+ export declare const VCS_REPOSITORY_NAME = "vcs.repository.name";
20
+ export declare const VCS_REPOSITORY_REF_REVISION = "vcs.repository.ref.revision";
21
+ /** @deprecated Use VCS_REPOSITORY_REF_REVISION instead. */
14
22
  export declare const VCS_REPOSITORY_REF_VERSION = "vcs.repository.ref.revision";
15
23
  export declare const FAAS_INVOKED_REGION = "faas.invoked_region";
16
24
  export declare const FAAS_INVOCATION_ID = "faas.invocation_id";
@@ -29,6 +29,16 @@ export interface Configuration {
29
29
  * including:
30
30
  * - `service.name` - the service name.
31
31
  * - `node.env` - the value of `NODE_ENV` environment variable.
32
+ * - `deployment.environment.name` - the Vercel deployment environment.
33
+ * - `cloud.region` - the Vercel deployment region.
34
+ * - `process.runtime.name` - the runtime when the SDK can determine it, such as "nodejs" or "edge".
35
+ * - `vcs.ref.head.name` - the Vercel Git ref when available.
36
+ * - `vcs.ref.head.revision` - the Vercel Git SHA.
37
+ * - `vcs.ref.type` - `branch` when the Vercel Git ref is available.
38
+ * - `vcs.repository.name` - the Vercel repository slug when available.
39
+ * - `deployment.id` - the Vercel deployment ID.
40
+ * - `service.version` - the Vercel deployment ID.
41
+ * - legacy compatibility aliases such as `env` and `vercel.*`.
32
42
  * - `env` - the Vercel deployment environment such as "production" or "preview" (`VERCEL_ENV` environment variable).
33
43
  * - `vercel.region` - the Vercel deployment region (`VERCEL_REGION` environment variable).
34
44
  * - `vercel.runtime` - "nodejs" or "edge" (`NEXT_RUNTIME` environment variable).
@@ -1 +1,8 @@
1
- export {};
1
+ /// <reference types="node" />
2
+ import type { Attributes } from "@opentelemetry/api";
3
+ export declare function getDefaultResourceAttributes({ attributes, env, runtime, serviceName, }: {
4
+ attributes?: Attributes;
5
+ env?: NodeJS.ProcessEnv;
6
+ runtime: string;
7
+ serviceName: string;
8
+ }): Attributes;
@@ -0,0 +1 @@
1
+ export declare function isDraining(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/otel",
3
- "version": "1.13.1",
3
+ "version": "1.14.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"