Tagged Interface
A property to be logged to telemetry may require a tag indicating the value may contain sensitive data. This type wraps a value of the given type V in an object along with a string tag (type can be further specified as T).
This indicates that the value should be organized or handled differently by loggers in various first or third party scenarios. For example, tags are used to mark data that should not be stored in logs for privacy reasons.
Signature
export interface Tagged<V, T extends string = string>
Type Parameters
Parameter | Constraint | Default | Description |
---|---|---|---|
V | |||
T | string | string |
Properties
Property | Type | Description |
---|---|---|
tag | T | |
value | V |
Property Details
tag
Signature
tag: T;
Type: T
value
Signature
value: V;
Type: V