Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

Version unstable

The effect package version used in telemetry headers, resources, and scopes.

2 exports Since v4.0.2 Source

Getters

Since v4.0.2

Returns the current version of the effect package.

Details

Defaults to the release version unless overridden by setCurrentVersion.

Signature

declare function getCurrentVersion(): string

Setters

Since v4.0.2

Overrides the version returned by getCurrentVersion.

Gotchas

Applies to this copy of the module. Existing telemetry layers retain the version they read when built.

Signature

declare function setCurrentVersion(version: string): void