@traceloop/ai-semantic-conventions
v0.11.0
Published
OpenTelemetry ai-specific semantic conventions
Downloads
26,206
Readme
OpenTelemetry Semantic Conventions for AI
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
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more about OpenTelemetry JavaScript: https://github.com/open-telemetry/opentelemetry-js
- For help or feedback on this project, join us on Slack
License
Apache 2.0 - See LICENSE for more information.