From 0a03cfced7de0c3cc9da68df1aaaea5e5972f0b1 Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai Date: Tue, 24 May 2022 05:08:35 -0700 Subject: [PATCH] Add workflow and issue template for RedisInstrumentation (#371) * Add workflow and issue template for RedisInstrumentation * Fix build --- ...comp_instrumentation_stackexchangeredis.md | 41 ++++++++++++++++ ...age-Instrumentation.StackExchangeRedis.yml | 49 +++++++++++++++++++ opentelemetry-dotnet-contrib.sln | 1 + ....Instrumentation.StackExchangeRedis.csproj | 3 +- 4 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/comp_instrumentation_stackexchangeredis.md create mode 100644 .github/workflows/package-Instrumentation.StackExchangeRedis.yml diff --git a/.github/ISSUE_TEMPLATE/comp_instrumentation_stackexchangeredis.md b/.github/ISSUE_TEMPLATE/comp_instrumentation_stackexchangeredis.md new file mode 100644 index 0000000000..87f3f6bf7a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/comp_instrumentation_stackexchangeredis.md @@ -0,0 +1,41 @@ +--- +name: OpenTelemetry.Instrumentation.StackExchangeRedis +about: Issue with OpenTelemetry.Instrumentation.StackExchangeRedis +labels: comp:instrumentation.stackexchangeredis +--- + +# Issue with OpenTelemetry.Instrumentation.StackExchangeRedis + +List of [all OpenTelemetry NuGet +packages](https://www.nuget.org/profiles/OpenTelemetry) and version that you are +using (e.g. `OpenTelemetry 1.2.0`): + +* TBD + +Runtime version (e.g. `net462`, `net48`, `netcoreapp3.1`, `net6.0` etc. You can +find this information from the `*.csproj` file): + +* TBD + +**Is this a feature request or a bug?** + +* [ ] Feature Request +* [ ] Bug + +**What is the expected behavior?** + +What do you expect to see? + +**What is the actual behavior?** + +What did you see instead? If you are reporting a bug, create a self-contained +project using the template of your choice and apply the minimum required code to +result in the issue you're observing. We will close this issue if: + +* The repro project you share with us is complex. We can't investigate custom + projects, so don't point us to such, please. +* If we can not reproduce the behavior you're reporting. + +## Additional Context + +Add any other context about the feature request here. diff --git a/.github/workflows/package-Instrumentation.StackExchangeRedis.yml b/.github/workflows/package-Instrumentation.StackExchangeRedis.yml new file mode 100644 index 0000000000..9c9b6f9b8c --- /dev/null +++ b/.github/workflows/package-Instrumentation.StackExchangeRedis.yml @@ -0,0 +1,49 @@ +name: Pack OpenTelemetry.Instrumentation.StackExchangeRedis + +on: + workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + push: + tags: + - 'Instrumentation.StackExchangeRedis-*' + +jobs: + build-test-pack: + runs-on: ${{ matrix.os }} + env: + PROJECT: OpenTelemetry.Instrumentation.StackExchangeRedis + + strategy: + matrix: + os: [windows-latest] + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # fetching all + + - name: Install dependencies + run: dotnet restore + + - name: dotnet build ${{env.PROJECT}} + run: dotnet build src/${{env.PROJECT}} --configuration Release --no-restore -p:Deterministic=true + + - name: dotnet test ${{env.PROJECT}} + run: dotnet test test/${{env.PROJECT}}.Tests + + - name: dotnet pack ${{env.PROJECT}} + run: dotnet pack src/${{env.PROJECT}} --configuration Release --no-build + + - name: Publish Artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{env.PROJECT}}-packages + path: '**/${{env.PROJECT}}/bin/**/*.*nupkg' + + - name: Publish Nuget + run: | + nuget push **/${{env.PROJECT}}/bin/**/*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_TOKEN }} -SymbolApiKey ${{ secrets.NUGET_TOKEN }} \ No newline at end of file diff --git a/opentelemetry-dotnet-contrib.sln b/opentelemetry-dotnet-contrib.sln index 5db4edc60d..7d772b65d8 100644 --- a/opentelemetry-dotnet-contrib.sln +++ b/opentelemetry-dotnet-contrib.sln @@ -47,6 +47,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{ .github\workflows\package-Instrumentation.Owin.yml = .github\workflows\package-Instrumentation.Owin.yml .github\workflows\package-Instrumentation.Quartz.yml = .github\workflows\package-Instrumentation.Quartz.yml .github\workflows\package-Instrumentation.Runtime.yml = .github\workflows\package-Instrumentation.Runtime.yml + .github\workflows\package-Instrumentation.StackExchangeRedis.yml = .github\workflows\package-Instrumentation.StackExchangeRedis.yml .github\workflows\package-Instrumentation.Wcf.yml = .github\workflows\package-Instrumentation.Wcf.yml .github\workflows\sanitycheck.yml = .github\workflows\sanitycheck.yml .github\workflows\windows-ci.yml = .github\workflows\windows-ci.yml diff --git a/src/OpenTelemetry.Instrumentation.StackExchangeRedis/OpenTelemetry.Instrumentation.StackExchangeRedis.csproj b/src/OpenTelemetry.Instrumentation.StackExchangeRedis/OpenTelemetry.Instrumentation.StackExchangeRedis.csproj index 572e03f7b8..85121d6aa3 100644 --- a/src/OpenTelemetry.Instrumentation.StackExchangeRedis/OpenTelemetry.Instrumentation.StackExchangeRedis.csproj +++ b/src/OpenTelemetry.Instrumentation.StackExchangeRedis/OpenTelemetry.Instrumentation.StackExchangeRedis.csproj @@ -5,7 +5,8 @@ StackExchange.Redis instrumentation for OpenTelemetry .NET $(PackageTags);distributed-tracing;Redis;StackExchange.Redis true - true + Instrumentation.StackExchangeRedis- + true