OtlpResource
Attributes
entriesToAttributes
Added in v1.0.0
Source
Signature
declare function entriesToAttributes(entries: Iterable<[string, unknown]>): Array<KeyValue>;unknownToAttributeValue
Added in v1.0.0
Source
Signature
declare function unknownToAttributeValue(value: unknown): AnyValue;unsafeServiceName
Added in v1.0.0
Source
Signature
declare function unsafeServiceName(resource: Resource): string;Constructors
fromConfig
Added in v1.0.0
Source
Signature
declare const fromConfig: (options?: {
readonly attributes?: Record<string, unknown>;
readonly serviceName?: string;
readonly serviceVersion?: string;
}) => Effect.Effect<Resource>;Signature
declare function make(options: {
readonly attributes?: Record<string, unknown>;
readonly serviceName: string;
readonly serviceVersion?: string;
}): Resource;Models
Signature
interface AnyValue {
arrayValue?: ArrayValue;
boolValue?: boolean | null;
bytesValue?: Uint8Array<ArrayBufferLike>;
doubleValue?: number | null;
intValue?: number | null;
kvlistValue?: KeyValueList;
stringValue?: string | null;
}ArrayValue interface
Added in v1.0.0
Source
Signature
interface ArrayValue {
values: Array<AnyValue>;
}Signature
type Fixed64 = LongBits | string | number;Signature
interface KeyValue {
key: string;
value: AnyValue;
}KeyValueList interface
Added in v1.0.0
Source
Signature
interface KeyValueList {
values: Array<KeyValue>;
}Signature
interface LongBits {
high: number;
low: number;
}Signature
interface Resource {
attributes: Array<KeyValue>;
droppedAttributesCount: number;
}