Opacc.Client.Sentry
0.4.0
dotnet add package Opacc.Client.Sentry --version 0.4.0
NuGet\Install-Package Opacc.Client.Sentry -Version 0.4.0
<PackageReference Include="Opacc.Client.Sentry" Version="0.4.0" />
<PackageVersion Include="Opacc.Client.Sentry" Version="0.4.0" />
<PackageReference Include="Opacc.Client.Sentry" />
paket add Opacc.Client.Sentry --version 0.4.0
#r "nuget: Opacc.Client.Sentry, 0.4.0"
#:package Opacc.Client.Sentry@0.4.0
#addin nuget:?package=Opacc.Client.Sentry&version=0.4.0
#tool nuget:?package=Opacc.Client.Sentry&version=0.4.0
Opacc.Client.Sentry
Sentry performance tracing integration for Opacc.Client. Adds spans for every Opacc operation so they appear as child spans inside your Sentry transactions.
Installation
Add both packages to your application project:
<PackageReference Include="Opacc.Client" Version="*" />
<PackageReference Include="Opacc.Client.Sentry" Version="*" />
Setup
1. Initialize Sentry in your application
ASP.NET Core:
builder.WebHost.UseSentry(options =>
{
options.Dsn = "https://your-key@sentry.io/your-project-id";
options.TracesSampleRate = 1.0; // required for spans to be captured
});
Worker / console:
using var _ = SentrySdk.Init(options =>
{
options.Dsn = "https://your-key@sentry.io/your-project-id";
options.TracesSampleRate = 1.0;
});
2. Register Opacc.Client, then add Sentry instrumentation
services.AddOpaccClient(options =>
{
options.ServiceUrl = "YourOpaccWebserviceUrl";
options.ClientId = "1";
options.ApplicationId = "MyApp";
options.DefaultUserId = 100;
options.DefaultPassword = "...";
});
services.AddOpaccSentry(); // must come after AddOpaccClient()
That's it. No further configuration is required.
What gets traced
Each operation becomes a child span under the active Sentry transaction:
| Operation | Span op | Span data |
|---|---|---|
GetBo |
opacc.getbo |
bo_entity, start, index_no, count, search_operator, filter, user_id |
Query |
opacc.query |
bo_entity, max_rows, filter, scrolling, is_continuation, distinct, user_id |
DeleteBo |
opacc.deletebo |
bo_entity, start_keys, index_no, is_test, filter, user_id |
SendRawAsync |
opacc.raw |
port_id, operation_id |
Spans are finished with SpanStatus.Ok on success and with the exception status on failure.
Purely optional
Opacc.Client has no dependency on Sentry. If AddOpaccSentry() is never called, nothing changes. If Sentry is initialized but no transaction is active when an Opacc call is made, the spans are silently skipped — zero overhead.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.3)
- Opacc.Client (>= 0.4.0)
- Sentry (>= 5.16.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|