0.12.0 • Published 5 months ago

@traceloop/ai-semantic-conventions v0.12.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
5 months ago

OpenTelemetry Semantic Conventions for AI

NPM Published Version Apache License

Semantic Convention constants for use with OpenLLMetry.

Installation

npm install --save @traceloop/ai-semantic-conventions

Usage

import { SemanticAttributes } from "@traceloop/ai-semantic-conventions";

const span = tracer
  .startSpan()
  .startSpan(spanName, spanOptions)
  .setAttributes({
    [SemanticAttributes.LLM_SYSTEM]: "openai",
  });

Useful links

License

Apache 2.0 - See LICENSE for more information.