Issue Team Ownership

このページは日本語には対応しておりません。随時翻訳に取り組んでいます。
翻訳に関してご質問やご意見ございましたら、お気軽にご連絡ください

Overview

Issue Team Ownership automates your triaging work by assigning issues to the right teams. There are three independent ways to infer team ownership, in order of priority:

  1. Team attribute: based on the team attribute set on the error event at runtime.
  2. CODEOWNERS: based on the top-level stack frame of the issue according to GitHub CODEOWNERS.
  3. Service ownership: based on the owner of the service where the issue happens.

Team attribute

You can programmatically assign team ownership at the time an error is raised by setting the team attribute to a Datadog team handle.

Note: After a team is assigned to an issue through the team attribute, the assignment is immutable.

APM

Set the team attribute on the span, for example:

span.set_tag("team", "payments-backend")

Logs

Set the team attribute on the log. See the Log Collection documentation for details on adding attributes to your logs.

RUM

Set the team attribute on the RUM event:

datadogRum.addError(error, { team: 'payments-frontend' });

CODEOWNERS file

Your team owns an issue if it is the code owner of the top-level stack frame of the issue according to your GitHub CODEOWNERS file.

Notes:

  • Stack frames of third-party files are not taken into account. Only the top-most stack frame related to a file present in your repository is considered.
  • After a team is assigned to an issue through CODEOWNERS, the assignment is immutable.
  • Issue Team Ownership only supports GitHub.

Setup

  1. Ensure Source Code Integration is set up.
  2. Install the GitHub integration.
  3. Make sure the GitHub integration has all requested permissions (Contents and Members).
  4. Create a valid CODEOWNERS file in your repository following GitHub’s CODEOWNERS standards.
  5. In Datadog, go to Teams > Select your team > Settings > GitHub Connection to map your Datadog teams to the corresponding GitHub teams defined in your CODEOWNERS file.
Linking GitHub teams to Datadog teams

Service ownership

Your team owns an issue if it owns the service where the issue happens. Service ownership is inferred from your existing service ownership configuration in Datadog. No additional setup is required.

Note: Teams assigned through service ownership cannot be removed from an issue and are dynamically updated based on the current service ownership.

Use team ownership

Team ownership information appears on the issue details panel when available:

Team ownership information on issue details

You can also use issue team ownership to filter issues by teams in the Error Tracking Explorer.

Team owner filtering in the search bar

Manage team ownership for issues

In addition to automatic team ownership, you can manually add or remove teams from issues.

Add a team

To add a team to an issue:

  1. Open the issue details panel.
  2. Click Add team.
  3. Select the team to add.

Remove a team

To remove a team from an issue:

  1. Open the issue details panel.
  2. Click the team to remove.
  3. Click Unlink team from issue.

Configuration

Issue Team Ownership is enabled by default for all services once the setup requirements are met. You can control this feature at both global and service levels through the Error Tracking settings page.

Issue Team Ownership configuration settings

Further Reading

お役に立つドキュメント、リンクや記事: