From 516bc8a5fd073857cb3be0c63afc47c72c064e95 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Fri, 10 Oct 2025 16:21:50 -0700 Subject: [PATCH] fix: paramaterized -> parameterized --- develop-docs/sdk/telemetry/logs.mdx | 17 ++++++++++------- .../default-attributes/message-template.mdx | 2 +- .../mobile-desktop-native.mdx | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/develop-docs/sdk/telemetry/logs.mdx b/develop-docs/sdk/telemetry/logs.mdx index 37334f6d54432..a20467fdfb96b 100644 --- a/develop-docs/sdk/telemetry/logs.mdx +++ b/develop-docs/sdk/telemetry/logs.mdx @@ -288,7 +288,7 @@ By default the SDK should attach the following attributes to a log: } ``` -If the log was paramaterized the SDK should attach the following +If the log was parameterized the SDK should attach the following 1. `sentry.message.template`: The parameterized template string 2. `sentry.message.parameter.X`: The parameters to the template string. X can either be the number that represent the parameter's position in the template string (`sentry.message.parameter.0`, `sentry.message.parameter.1`, etc) or the parameter's name (`sentry.message.parameter.item_id`, `sentry.message.parameter.user_id`, etc) @@ -312,13 +312,16 @@ Logs can be generated in three ways: 1. User calls Sentry’s Logging API directly: SDKs MUST NOT send a `sentry.origin`. As logs are charged based on size, we want to minimize the size of logs, and we **intentionally deviate** from the original [Trace Origin](/sdk/telemetry/traces/trace-origin/) documentation. 2. Captured from a logging library: Use `auto.log.` format. where `` is the relevant integration. For example, the .NET Serilog library emits: - ```json - { "sentry.origin": "auto.log.serilog" } - ``` + +```json +{ "sentry.origin": "auto.log.serilog" } +``` + 3. Auto-emitted logs from other instrumented systems: Use the `auto..` format as outlined in [Trace Origin](/sdk/telemetry/traces/trace-origin/) documentation. - ```json - { "sentry.origin": "auto.db.prisma" } - ``` + +```json +{ "sentry.origin": "auto.db.prisma" } +``` #### User Attributes diff --git a/includes/logs/default-attributes/message-template.mdx b/includes/logs/default-attributes/message-template.mdx index d9c47fc1c0d8d..747b6c9547aaa 100644 --- a/includes/logs/default-attributes/message-template.mdx +++ b/includes/logs/default-attributes/message-template.mdx @@ -1,6 +1,6 @@ ### Message Template Attributes -If the log was paramaterized, Sentry adds the message template and parameters as log attributes. +If the log was parameterized, Sentry adds the message template and parameters as log attributes. - `message.template`: The parameterized template string. This is sent from the SDK as `sentry.message.template`. - `message.parameter.X`: The parameters to fill the template string. X can either be the number that represent the parameter's position in the template string (`sentry.message.parameter.0`, `sentry.message.parameter.1`, etc) or the parameter's name (`sentry.message.parameter.item_id`, `sentry.message.parameter.user_id`, etc). This is sent from the SDK as `sentry.message.parameter.X`. diff --git a/includes/logs/default-attributes/mobile-desktop-native.mdx b/includes/logs/default-attributes/mobile-desktop-native.mdx index 575fc77651921..a5f5e03cbff15 100644 --- a/includes/logs/default-attributes/mobile-desktop-native.mdx +++ b/includes/logs/default-attributes/mobile-desktop-native.mdx @@ -1,3 +1,3 @@ ### Message Template Attributes -If the log was paramaterized (like with `Sentry.logger().error("A %s log message", "formatted");`), Sentry adds the message template and parameters as log attributes. +If the log was parameterized (like with `Sentry.logger().error("A %s log message", "formatted");`), Sentry adds the message template and parameters as log attributes.