From 0c268e71274239d0b622110c7fca18612146dce4 Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Fri, 15 Nov 2024 10:32:10 +0100 Subject: [PATCH] feat: improve bug template (#5086) Co-authored-by: Marylia Gutierrez Co-authored-by: Trent Mick Co-authored-by: Jamie Danielson --- .github/ISSUE_TEMPLATE/bug_report.yaml | 74 ++++++++++++++++++++------ 1 file changed, 58 insertions(+), 16 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 5e195159de6..f657727b303 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -5,38 +5,61 @@ body: - type: markdown attributes: value: | - Thanks for taking the time to fill out this bug report! - Please make sure to fill out the entire form below, - providing as much context as you can in order to help us - triage and track down your bug as quickly as possible. + > [!IMPORTANT] + > **Please read all parts of this form carefully.** By following the instructions carefully, you ensure that we + > can get started fixing your bug, instead of being stuck at trying to reproduce your issue. Please provide + > all requested information, even if you think it does not apply to your problem. + > + > **If you use a third-party package that re-distributes OpenTelemetry, open the bug ticket with that third party unless you can provide steps to reproduce this with pure OpenTelemetry.** + > Digging into third-party distributions of OpenTelemetry is not in scope for this project. - Before filing a bug, please be sure you have searched through - [existing bugs](https://github.com/open-telemetry/opentelemetry-js/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug) - to see if your bug is already addressed. - - If your bug is related to an instrumentation or plugin in [opentelemetry-js-contrib](https://github.com/open-telemetry/opentelemetry-js-contrib) - please be sure to file it there. + Before filing a bug, please be sure you have searched through [existing open bugs](https://github.com/open-telemetry/opentelemetry-js/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug) + to see if this bug has already been filed. + - type: markdown + attributes: + value: | + ## Bug Reproduction - type: textarea attributes: label: What happened? - description: Please provide as much detail as you reasonably can. + description: | + > [!IMPORTANT] + > **Please provide as much detail as you reasonably can.** + > We all know the complexities of developing with JavaScript/TypeScript. **Be specific** about your setup and **DO NOT** assume that the person handling your bug report knows how to use your specific combination of tooling. Always provide build instructions and config files. value: | ## Steps to Reproduce - + ## Expected Result ## Actual Result ## Additional Details + + validations: required: true - type: textarea attributes: label: OpenTelemetry Setup Code - description: Please provide the code you use to set up OpenTelemetry + description: | + Please provide the code you use to set up OpenTelemetry. + If you use `@opentelemetry/auto-instrumentations-node/register`, please state so here. + You may omit this step if you have provided a reproducer repository. placeholder: | # This comes from our README.md - // tracing.js + // otel.js 'use strict' @@ -75,13 +98,15 @@ body: - type: textarea attributes: label: package.json - description: If possible, please provide your full package.json. If not, please provide at least your list of dependencies and their versions, especially OpenTelemetry versions. + description: | + Please provide your the full package.json needed to reproduce the issue. + You may omit this step if you provided a reproducer repository. render: "JSON" placeholder: | { "name": "my-app", "scripts": { - "start": "node -r tracing.js app.js" + "start": "node -r otel.js app.js" }, "dependencies": { "@opentelemetry/api": "^1.3.0", @@ -95,3 +120,20 @@ body: description: | Please copy and paste any relevant log output. render: shell + - type: markdown + attributes: + value: | + ## System Details + System Details help us when we cannot reproduce your problem with the information provided above. Sometimes bugs only surface on specific platforms and runtime versions. + - type: textarea + attributes: + label: Operating System and Version + placeholder: Ubuntu 24.04, Windows 11 Build 26100.2033, macOS 15.0.1 + validations: + required: false + - type: textarea + attributes: + label: Runtime and Version + placeholder: Node.js v20.12.1, Node.js v18.18.2, Firefox 130, Chrome 132, ... + validations: + required: false