承接 phauthentic/correlation-id-symfony-bundle 相关项目开发

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

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

phauthentic/correlation-id-symfony-bundle

最新稳定版本:1.2.0

Composer 安装命令:

composer require phauthentic/correlation-id-symfony-bundle

包简介

README 文档

README

PHP >= 8.1 phpstan Level 8 License: MIT Code Quality

This is a Symfony bridge for the framework agnostic Correlation ID library.

Features

  • Adds the Correlation ID to the Request and Response automatically.
    • Header names can be configured for each separately.
  • Provides a messenger stamp and middleware, that will add the CorrelationIDStamp to each message.

Installation

composer require phauthentic/correlation-id-symfony-bundle

Configuration

You can configure three different settings to control the behavior:

  • response_header_name - The name of the response header for the ID.
  • request_header_name - The name of the request header for the ID.
  • pass_through - If the ID from the request should be passed to the response enable this. This is useful if you are dealing with a microservice that is not exposed to the public but gets further actions delegated from the entry point and must retain the original ID.

config/correlation_id.yaml:

correlation_id:
    response_header_name: 'X-Correlation-ID'
    request_header_name: 'X-Correlation-ID'
    pass_through: false

Messenger Middleware

The messenger middleware will add the Correlation ID to your messages. Just add the middleware to your bus.

Copyright & License

Licensed under the MIT license.

Copyright (c) Phauthentic / Florian Krämer

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-28