본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

데이터베이스 호출 및 시스템 시맨틱 컨벤션

원문 보기 위키 갱신

Status: Mixed

출처: 문서

본문

이 문서는 데이터베이스 클라이언트 스팬뿐 아니라 데이터베이스 메트릭과 로그에 대한 시맨틱 컨벤션을 정의해요.

중요

이 문서의 v1.24.0(또는 그 이전 버전)을 사용하는 기존 데이터베이스 인스트루멘테이션은 (또는 그 이전 버전):

  • 기존 메이저 버전에서 기본으로 내보내는 데이터베이스 컨벤션의 버전을 바꾸면 안 돼요. 컨벤션에는 속성, 메트릭·스팬 이름, 측정 단위 등이 포함되지만 여기에 국한되지는 않아요. 속성, 메트릭·스팬 이름, 측정 단위 등이 포함되지만 이것만 있는 것은 아니에요.

  • 기존 메이저 버전에 OTEL_SEMCONV_STABILITY_OPT_IN 환경 변수를 카테고리별 값의 쉼표로 구분된 목록(예: http, databases, messaging)으로 도입해야 해요. (예: http, databases, messaging). 값 목록은 다음과 같아요:

  • database - 안정적인 데이터베이스 컨벤션을 내보내고, 인스트루멘테이션이 이전에 내보내던 실험적 데이터베이스 컨벤션은 더 이상 내보내지 않아요. 이전에 내보내던 실험적 컨벤션을 중단해요.

  • database/dup - 실험적 및 안정적인 데이터베이스 컨벤션을 모두 내보내서, 안정적인 시맨틱 컨벤션을 단계적으로 배포할 수 있게 해요.

  • 어떤 값도 없을 때의 기본 동작은, 인스트루멘테이션이 이전에 내보내던 이전 실험적 데이터베이스 컨벤션을 계속해서 내보내는 것이에요. 인스트루멘테이션이 이전에 내보내던 버전을 계속 내보내요.

  • 참고: 두 값이 모두 있으면 database/dup가 database보다 우선해요.

  • 두 컨벤션 세트를 모두 내보내기 시작한 후 최소 6개월 동안 기존 메이저 버전을(최소한 보안 패치를) 유지 관리해야 해요.

  • 다음 메이저 버전에서는 환경 변수를 제거하고 안정적인 데이터베이스 컨벤션만 내보낼 수 있어요.

데이터베이스 연산에 대한 시맨틱 컨벤션은 다음 신호별로 정의돼요:

  • DB 스팬: 데이터베이스 클라이언트 스팬에 대한 시맨틱 컨벤션.
  • DB 메트릭: 데이터베이스 연산 메트릭에 대한 시맨틱 컨벤션.
  • DB 예외: 데이터베이스 클라이언트 예외에 대한 시맨틱 컨벤션.

다음 데이터베이스에 대해서는 기술별 시맨틱 컨벤션이 정의돼 있어요:

  • AWS DynamoDB: AWS DynamoDB에 대한 시맨틱 컨벤션.
  • Cassandra: Cassandra에 대한 시맨틱 컨벤션.
  • Azure Cosmos DB: Azure Cosmos DB에 대한 시맨틱 컨벤션.
  • CouchDB: CouchDB에 대한 시맨틱 컨벤션.
  • Elasticsearch: Elasticsearch에 대한 시맨틱 컨벤션.
  • HBase: HBase에 대한 시맨틱 컨벤션.
  • MongoDB: MongoDB에 대한 시맨틱 컨벤션.
  • Microsoft SQL Server: Microsoft SQL Server에 대한 시맨틱 컨벤션.
  • Oracle Database: Oracle Database에 대한 시맨틱 컨벤션.
  • Redis: Redis에 대한 시맨틱 컨벤션.
  • SQL: SQL 데이터베이스에 대한 시맨틱 컨벤션.
Semantic conventions for Cassandra client operations
Semantic conventions for Microsoft Azure Cosmos DB client operations
Semantic conventions for CouchDB client operations
Semantic conventions for AWS DynamoDB client operations
Semantic conventions for Elasticsearch client operations
Semantic conventions for database exceptions
Semantic conventions for HBase client operations
Semantic conventions for MariaDB client operations
Semantic conventions for database client metrics
Semantic conventions for MongoDB client operations
Semantic conventions for MySQL client operations
Semantic conventions for Oracle Database
Semantic conventions for PostgreSQL client operations
Semantic conventions for Redis client operations
Semantic conventions for database client spans
Semantic conventions for SQL databases client operations
Semantic conventions for Microsoft SQL Server client operations