diff --git a/platform-includes/logs/options/dotnet.mdx b/platform-includes/logs/options/dotnet.mdx index d3a073f9bf2e3a..ea35497ca8ff91 100644 --- a/platform-includes/logs/options/dotnet.mdx +++ b/platform-includes/logs/options/dotnet.mdx @@ -44,7 +44,7 @@ options => }); ``` -The callback function set via `SetBeforeSendLog(Func)` receives a log object, and should return the log object if you want it to be sent to Sentry, or `null` if you want to discard it. +The `beforeSendLog` delegate receives a log object, and should return the log object if you want it to be sent to Sentry, or `null` if you want to discard it. The log object of type `SentryLog` has the following members: - `Timestamp` Property: (`DateTimeOffset`) The timestamp of the log. @@ -53,6 +53,6 @@ The log object of type `SentryLog` has the following members: - `Message` Property: (`string`) The formatted log message. - `Template` Property: (`string?`) The parameterized template string. - `Parameters` Property: (`ImmutableArray>`) The parameters to the template string. -- `ParentSpanId` Property: (`SpanId?`) The span id of the span that was active when the log was collected. +- `SpanId` Property: (`SpanId?`) The span id of the span that was active when the log was collected. - `TryGetAttribute(string key, out object value)` Method: Gets the attribute value associated with the specified key. Returns `true` if the log contains an attribute with the specified key and it's value is not `null`, otherwise `false`. - `SetAttribute(string key, object value)` Method: Sets a key-value pair of data attached to the log. Supported types are `string`, `bool`, integers up to a size of 64-bit signed, and floating-point numbers up to a size of 64-bit. diff --git a/platform-includes/logs/usage/dotnet.mdx b/platform-includes/logs/usage/dotnet.mdx index 7caba0799c3500..954010a4df43a1 100644 --- a/platform-includes/logs/usage/dotnet.mdx +++ b/platform-includes/logs/usage/dotnet.mdx @@ -2,7 +2,7 @@ Once the feature is enabled on the SDK and the SDK is initialized, you can send logs using the `SentrySdk.Logger` APIs. -The `SentrySdk.Logger` instance exposes six methods that you can use to log messages at different log levels: `Trace`, `Debug`, `Info`, `Warning`, `Error`, and `Fatal`. +The `SentryStructuredLogger` type exposes six method groups that you can use to log messages at different log levels: `Trace`, `Debug`, `Info`, `Warning`, `Error`, and `Fatal`. These properties will be sent to Sentry, and can be searched from within the Logs UI, and even added to the Logs views as a dedicated column.