Opacc.Client.Sentry 0.4.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Opacc.Client.Sentry --version 0.4.0
                    
NuGet\Install-Package Opacc.Client.Sentry -Version 0.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Opacc.Client.Sentry" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Opacc.Client.Sentry" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Opacc.Client.Sentry" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Opacc.Client.Sentry --version 0.4.0
                    
#r "nuget: Opacc.Client.Sentry, 0.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Opacc.Client.Sentry@0.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Opacc.Client.Sentry&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Opacc.Client.Sentry&version=0.4.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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