承接 compasshp/datadog-bundle 相关项目开发

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

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

compasshp/datadog-bundle

最新稳定版本:v1.4

Composer 安装命令:

composer require compasshp/datadog-bundle

包简介

Automatically sends user information to Datadog APM/ASM.

README 文档

README

This bundle allows you to automatically track user information in DataDog's APM and ASM modules.

DataDog APM

For DataDog APM, it will automatically pass in the session ID, and -- if logged in -- the currently logged in username. You can additionally specify additional properties to pass to APM.

DataDog ASM

If enabled, for DataDog Application Security Monitoring, all success and failure login attempts will be passed to the datadog agent. You can additionally specify additional properties to pass to APM.

Installation

Prerequisites

The DataDog Agent needs to be configured in your application with tracing enabled.

If you are using Application Security Monitoring, the agent should be configured with the --enable-appsec argument.

Get the bundle

Let Composer download and install the bundle by running

composer require compasshp/datadog-bundle

in a shell.

Enable the bundle

Register the bundle (you most likely don't want this bundle enable)

// in config/bundles.php
return [
	// ...
	Compass\DatadogBundle\CompassDatadogBundle::class => ['all' => true],
];

Configure

Create the configuration file:

# config/packages/compass_datadog.yaml

# The DataDog agent is typically not available in your test environment.
when@test:
  compass_datadog:
    tracing:
      enabled: false
    appsec:
      enabled: false

compass_datadog:
  tracing:
    enabled: true
    user_entity: App\Entity\User
    user_properties: [ firstName, lastName, email ] # specify any additional properties you want traced.  Username is always traced when someone is logged in.
  appsec:
    enabled: true # default is false

And that's it! Once configured, your application will automatically begin sending additional metadata to DataDog.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-27