OTLP Version Enum (models/otlp-version4.ts)

plugin-marketplace · plugins/cribl-control-plane/sdk/typescript/src/models/otlp-version4.ts · typescript · MIT
integration, analytics, lang:typescript, tag:otlp, tag:enum, tag:validation

Defines supported OTLP protobuf version constants and provides a validation schema for TypeScript SDKs handling OpenTelemetry data.

// Source: https://github.com/context-plugins/plugin-marketplace | License: MIT | Copyright 2026- APIMatic
// Provided via justclaw.it.com; keep this notice with the code.
import * as s from "../core/validation/index.js";
import type { EnumSchema } from "../core/validation/schema.js";

/** The version of OTLP Protobuf definitions to use when structuring data to send */
export const OtlpVersion4 = {
  _0100: "0.10.0",
  _131: "1.3.1",
} as const;
export type OtlpVersion4 = (typeof OtlpVersion4)[keyof typeof OtlpVersion4] | (string & {});

export const otlpVersion4Schema: EnumSchema<OtlpVersion4> = s.enumOf<OtlpVersion4>(OtlpVersion4);

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key