承接 just-bases/php-obs-dev-base 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

just-bases/php-obs-dev-base

Composer 安装命令:

composer require just-bases/php-obs-dev-base

包简介

PHP Observability Dev/CI Metapackage

README 文档

README

PHP observability dev/CI metapackage. The concrete counterpart to php-obs-base.

Why this exists, and why it's separate

php-obs-base is deliberately flat — API-only, contracts-only (OTel API, CloudEvents, PSR-3). That's correct for anything a library depends on: consumers shouldn't have an exporter, an SDK, or a concrete logger forced on them by a package they didn't choose.

But tests and CI need to actually run observability code — assert on real span output, real log lines, real event serialization — not mock an interface in every package's test suite individually. That's a dev/CI concern, not a runtime-consumer concern, so it gets its own metapackage rather than being bundled into php-obs-base itself.

Rule of thumb: php-obs-base goes in require. php-obs-dev-base goes in require-dev, and only in the package actually running the tests — not in every downstream consumer.

What it requires

"just-bases/php-obs-base": "^1.0",
"open-telemetry/sdk": "^1.9",
"open-telemetry/exporter-otlp": "^1.1",
"open-telemetry/transport-grpc": "^1.1",
"monolog/monolog": "^3.7"
  • php-obs-base — pulls in the flat contracts (OTel API, CloudEvents, PSR-3) this package builds on.
  • OTel SDK — the concrete implementation. Lets tests exercise real span creation/export instead of a no-op API implementation.
  • OTel OTLP exporter + gRPC transport — export path for local dev (point at a local collector/Jaeger) and CI (assert against captured span data).
  • Monolog — concrete PSR-3 implementation for dev/CI logging assertions.

Usage

composer require --dev just-bases/php-obs-dev-base

Status

New. First real dev/CI counterpart to a -base package — if this pattern holds up, php-unit-test-base and php-qa-base may eventually get non-flat siblings too, but only if a real need for one surfaces the same way this one did.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固