Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Instrumentation.Hangfire] Added support for custom job display names #756

Merged
merged 4 commits into from
Nov 4, 2022

Conversation

prochnowc
Copy link
Contributor

Fixes #755.

Changes

Adds support for using custom display names in the activities display name.

@prochnowc prochnowc requested a review from a team November 4, 2022 06:31
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 4, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: prochnowc / name: Christian Prochnow (fad3a02)

@Kielek
Copy link
Contributor

Kielek commented Nov 4, 2022

@fred2u, could you please check?

@Kielek Kielek added the comp:instrumentation.hangfire Things related to OpenTelemetry.Instrumentation.Hangfire label Nov 4, 2022
@Kielek
Copy link
Contributor

Kielek commented Nov 4, 2022

@prochnowc
Copy link
Contributor Author

@prochnowc, for sure we need entry in https://github.com/open-telemetry/opentelemetry-dotnet-contrib/blob/main/src/OpenTelemetry.Instrumentation.Hangfire/CHANGELOG.md

@Kielek I wasnt sure where to put it .. is an entry below "Unreleased" suitable?

@Kielek
Copy link
Contributor

Kielek commented Nov 4, 2022

@prochnowc, for sure we need entry in https://github.com/open-telemetry/opentelemetry-dotnet-contrib/blob/main/src/OpenTelemetry.Instrumentation.Hangfire/CHANGELOG.md

@Kielek I wasnt sure where to put it .. is an entry below "Unreleased" suitable?

Yes, you can find example here:

## Unreleased
* Fixed issue when using version 3.7.100 of the AWS SDK for .NET triggering an
EndpointResolver not found exception.
([#726](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/726))

@prochnowc
Copy link
Contributor Author

Yes, you can find example here:

## Unreleased
* Fixed issue when using version 3.7.100 of the AWS SDK for .NET triggering an
EndpointResolver not found exception.
([#726](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/726))

@Kielek Ok, added the entry to CHANGELOG

@prochnowc
Copy link
Contributor Author

@fred2u The failing builds are related to System.Diagnostics.DiagnosticSource 7.0.0-rc.1.22426.10 which complains about not supporting netcoreapp3.1 - I was already wondering why OpenTelemetry uses 7.0.0-rc instead of 6.0.0 ?

The build will probably fail for the same reason with v6.

@cijothomas
Copy link
Member

@fred2u The failing builds are related to System.Diagnostics.DiagnosticSource 7.0.0-rc.1.22426.10 which complains about not supporting netcoreapp3.1 - I was already wondering why OpenTelemetry uses 7.0.0-rc instead of 6.0.0 ?

The build will probably fail for the same reason with v6.

^ That is only a warning and not an error. Build fails for different reason.

C:\Users\runneradmin.nuget\packages\system.diagnostics.diagnosticsource\7.0.0-rc.1.22426.10\buildTransitive\netcoreapp2.0\System.Diagnostics.DiagnosticSource.targets(4,5): warning : System.Diagnostics.DiagnosticSource 7.0.0-rc.1.22426.10 doesn't support netcoreapp3.1 and has not been tested with it. Consider upgrading your TargetFramework to net6.0 or later. You may also set true in the project file to ignore this warning and attempt to run in this unsupported configuration at your own risk. [D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\test\OpenTelemetry.Instrumentation.Process.Tests\OpenTelemetry.Instrumentation.Process.Tests.csproj]
D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\src\OpenTelemetry.Instrumentation.Hangfire\HangfireInstrumentationOptions.cs(40,89): error SA1629: Documentation text should end with a period [D:\a\opentelemetry-dotnet-contrib\opentelemetry-dotnet-contrib\src\OpenTelemetry.Instrumentation.Hangfire\OpenTelemetry.Instrumentation.Hangfire.csproj]

@prochnowc
Copy link
Contributor Author

prochnowc commented Nov 4, 2022

^ That is only a warning and not an error. Build fails for different reason.

Oh, sorry - did not see the actual error because of the irritating warning. It's fixed now.

The remaining problem seems to be a test failure in a project I did not touch:
Failed OpenTelemetry.Instrumentation.AspNet.Tests.HttpInListenerTests.AspNetRequestsAreCollectedSuccessfully

@utpilla utpilla merged commit 005fdb7 into open-telemetry:main Nov 4, 2022
@prochnowc prochnowc deleted the hangfire-displayname branch November 5, 2022 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:instrumentation.hangfire Things related to OpenTelemetry.Instrumentation.Hangfire
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Instrumentation.Hangfire] Add support for custom job display names
5 participants