# OpenTelemetry Semantic Conventions for AI [![NPM Published Version][npm-img]][npm-url] [![Apache License][license-image]][license-image] Semantic Convention constants for use with OpenLLMetry. ## Installation ```bash npm install --save @traceloop/ai-semantic-conventions ``` ## Usage ```ts 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: - For more about OpenTelemetry JavaScript: - For help or feedback on this project, join us on [Slack][slack-url] ## License Apache 2.0 - See [LICENSE][license-url] for more information. [slack-url]: https://traceloop.com/slack [license-url]: https://github.com/traceloop/openllmetry-js/blob/main/LICENSE [license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat [npm-url]: https://www.npmjs.com/package/@traceloop/ai-semantic-conventions [npm-img]: https://badge.fury.io/js/%40traceloop%2Fai-semantic-conventions.svg