friendlydev/microsoft-correlationvector-php

dev-master 2022-05-09 13:07 UTC

This package is auto-updated.

Last update: 2024-09-09 17:59:11 UTC


README

Microsoft-CorrelationVector-PHP 提供了 CorrelationVector 协议的 PHP 实现,用于通过分布式系统跟踪和关联事件。

背景

关联向量(简称 cV)是一个基于轻量级向量时钟的格式和协议标准,用于通过分布式系统跟踪和关联事件。该标准在微软内部被广泛用于第一方应用程序和服务,并支持多个日志库和平台(服务、客户端 - 原生、管理、Js、iOS、Android 等)。该标准满足了从分布式跟踪和调试到系统和商业智能的多种数据处理需求,在各种商业组织中发挥着作用。

有关关联向量规范及其支持的场景的更多信息,请参阅 规范 仓库。

安装

composer install friendlydev/microsoft-correlationvector-php

用法

use MicrosoftCV\CorrelationVector;

$ms_cv = CorrelationVector::createCorrelationVector();

print 'Initial vector: ' . $ms_cv->value();
print 'Next iteration: ' . $ms_cv->increment();

需求

  • PHP >= 8.1

许可证

GNU 通用公共许可证 v3.0

作者

基于微软的实现

https://github.com/search?q=org%3Amicrosoft+correlationVector

https://github.com/Microsoft/Telemetry-Client-for-Android/blob/master/AndroidCll/src/main/java/com/microsoft/cll/android/CorrelationVector.java