@opentelemetry/otlp-transformer
Version:
Transform OpenTelemetry SDK data into OTLP
11 lines • 830 B
TypeScript
import type { IAnyValue, IInstrumentationScope, IKeyValue, Resource } from './internal-types';
import type { Attributes } from '@opentelemetry/api';
import type { InstrumentationScope } from '@opentelemetry/core';
import type { Resource as ISdkResource } from '@opentelemetry/resources';
import type { Encoder } from './utils';
export declare function createResource(resource: ISdkResource, encoder: Encoder): Resource;
export declare function createInstrumentationScope(scope: InstrumentationScope): IInstrumentationScope;
export declare function toAttributes(attributes: Attributes, encoder: Encoder): IKeyValue[];
export declare function toKeyValue(key: string, value: unknown, encoder: Encoder): IKeyValue;
export declare function toAnyValue(value: unknown, encoder: Encoder): IAnyValue;
//# sourceMappingURL=internal.d.ts.map