Skip to content

Commit

Permalink
TransactionContext snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsandfoxes committed Feb 12, 2024
1 parent 534f8ef commit dddb2c8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/platforms/dotnet/migration/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,21 @@ This SDK version is compatible with a self-hosted version of Sentry `22.12.0` or
- `DebugImage` and `DebugMeta` moved to `Sentry.Protocol` namespace.
- `SentryClient.Dispose` is no longer obsolete.
- `ISentryClient.CaptureEvent` overloads have been replaced by a single method accepting optional `Hint` and `Scope` parameters. You will need to pass `hint` as a named parameter from code that calls `CaptureEvent` without passing a `scope` argument.
- `TransactionContext` and `SpanContext` constructors were updated. If you're constructing instances of these classes, you will need to adjust the order in which you pass parameters to these.
- `TransactionContext` and `SpanContext` constructors were updated and unified. If you're constructing instances of these classes, you will need to adjust the order in which you pass parameters to these.
```csharp
public TransactionContext(
string name,
string operation,
SpanId? spanId = null,
SpanId? parentSpanId = null,
SentryId? traceId = null,
string? description = "",
SpanStatus? status = null,
bool? isSampled = null,
bool? isParentSampled = null,
TransactionNameSource nameSource = TransactionNameSource.Custom
)
```
- The `DiagnosticLogger` signature for `LogError` and `LogFatal` now takes the `exception` as the first parameter. This way, it no longer gets mixed up with the `TArgs`. The `DiagnosticLogger` now also receives an overload for `LogError` and `LogFatal` that accepts a message only.
- `Distribution` added to `IEventLike`.
- `StackFrame`'s `ImageAddress`, `InstructionAddress`, and `FunctionId` changed to `long?`.
Expand Down

0 comments on commit dddb2c8

Please sign in to comment.