{"repo":"swift-otel/swift-otel-semantic-conventions","free":true,"listed":false,"github":"https://github.com/swift-otel/swift-otel-semantic-conventions","clone":"git clone https://github.com/swift-otel/swift-otel-semantic-conventions.git","description":"OpenTelemetry Semantic Conventions for Swift","language":"Swift","stars":16,"topics":["opentelemetry","otel","semconv","swift-distributed-tracing","swift-log","swift-metrics","swift-otel"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Swift OTel Semantic Conventions OpenTelemetry semantic conventions for Swift. [![SemConv][semconv-badge]][semconv-url] Overview This repo contains Swift support for the OpenTelemetry Semantic Convention Attribute Registry. Using Swift OTel Semantic Conventions has the following benefits: 1. Avoids misspellings or propagation of nonstandard attribute names 2. OpenTelemetry deprecation is automatically marked in Swift 3. Attribute documentation is automatically integrated into code editors Usage Span Attributes This package vends type-aware extensions on SpanAttributes for each OTel attribute: Opting out of Span Attributes SpanAttributes extensions are included by default. You can opt out by excluding the Tracing trait in your dependency declaration, potentially saving some compilation time: Attribute Names This package vends each OTel attribute name as a static string property on the OTelAttribute type. To use them, simply reference the static properties when creating span attributes or log metadata instead of string literals: Unstable Attributes WARNING: unstable attributes may experience breaking changes on minor version updates of this package! Unstable attributes are available, but are gated behind a non-default Experimental trait that must be explicitly included in your Package.swift . It is recommended that you use an upToNextMinor ) dependency range when including this trait, because minor versions of swift-otel-semantic-conventions may include breaking changes to unsta","default_branch":null,"files":null,"tree":[],"storefront":"/r/swift-otel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/swift-otel/swift-otel-semantic-conventions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}