specoto/trace 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

specoto/trace

Composer 安装命令:

composer require specoto/trace

包简介

PSR-22 Application Tracing interfaces — intentionally minimalist tracing contracts for PHP

README 文档

README

This package provides the proposed PSR-22 interfaces for application tracing in PHP. It contains only interfaces and enums — no concrete implementations.

This is a personal prototype based on the PSR-22 draft. Library and framework authors can depend on this package; tracing providers can implement these interfaces.

Interfaces

InterfacePurpose
TracerProviderInterfaceEntry point — get a named tracer
TracerInterfaceCreate spans
SpanInterfaceRead/write span data
SpanContextInterfaceW3C trace context identity

Enums

EnumValues
SpanKindINTERNAL, CLIENT, SERVER, PRODUCER, CONSUMER
SpanStatusUNSET, OK, ERROR

Design

This package is intentionally minimalist — it scopes itself to what library authors need to emit tracing signals, and nothing more. Transmission, batching, exporting, and context propagation are out of scope.

See the PSR-22 meta document for the full rationale:

"This standard aims to create an intentionally minimalist set of interfaces that can be used to provide tracing signals to 3rd party libraries in a unified manner."

"By taking transmission mechanisms out of scope for this PSR, we drastically increase the simple adoptability of tracing for all parties involved."

Repository

GitLab: gitlab.com/specoto/trace Packagist: specoto/trace

Requirements

  • PHP 8.3+ (enums)

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固