🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@traceloop/ai-semantic-conventions

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@traceloop/ai-semantic-conventions

OpenTelemetry ai-specific semantic conventions

0.14.0
latest
npm
Version published
Weekly downloads
59K
19.14%
Maintainers
3
Weekly downloads
 
Created
Source

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",
  });

License

Apache 2.0 - See LICENSE for more information.

Keywords

opentelemetry

FAQs

Package last updated on 04 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts