open-telemetry/sem-conv
PHP definitions for OpenTelemetry Semantic Conventions. Provides stable and incubating attribute and metric constants generated from OpenTelemetry semantic-conventions releases, helping instrumentation authors use consistent names across languages.
Architecture fit: The package is a pure constants provider with zero runtime logic, making it trivially compatible with Laravel's architecture. It integrates as a dependency without requiring service providers, middleware, or config changes.
Integration feasibility: Extremely high. Requires only composer require and direct usage in instrumentation code. No complex wiring needed—just replace hardcoded attribute strings with constants from OpenTelemetry\SemConv\Attributes\* classes.
Technical risk: Low for initial adoption but critical for upgrades. Key risks:
composer.json).open-telemetry/sdk)? Are version pinning requirements aligned?Stack fit: Ideal for Laravel’s service-oriented structure. Works seamlessly with:
opentelemetry/sdk) for span/metric creation.composer.json (e.g., "open-telemetry/sem-conv": "^1.38.0")."http.method") in existing OTel code with SpanAttributes::HTTP_METHOD equivalents.OpenTelemetry\SemConv\Incubating\*) for production use—only adopt after verifying stability in OpenTelemetry specs.sem-conv 1.38.0 aligns with SDK 1.38.x).laravel/telescope).sem-conv without reviewing changelogs for removed attributes.Maintenance: Minimal overhead for the package itself (pure constants), but requires discipline:
composer.json—never use ^ for major/minor updates.opentelemetry/sdk), not this package.class 'SpanAttributes' not found for removed constants).ReflectionClass exploration in Tinker).stable (safe for production) and incubating (experimental) attributes.How can I help you explore Laravel packages today?