Skip to content

Commit 145bc00

Browse files
docs(php-sdk): refactor config options page (#12623)
1 parent 55b9416 commit 145bc00

File tree

9 files changed

+121
-126
lines changed

9 files changed

+121
-126
lines changed

docs/platforms/dart/configuration/options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ If you enable this option, be sure to manually remove what you don't want to sen
100100

101101
<ConfigKey name="server-name">
102102

103-
This option can be used to supply a "server name." When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
103+
This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
104104

105105
Most SDKs will attempt to auto-discover this value.
106106

docs/platforms/dotnet/common/configuration/options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ If you enable this option, be sure to manually remove what you don't want to sen
146146

147147
<ConfigKey name="server-name">
148148

149-
This option can be used to supply a "server name." When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
149+
This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
150150

151151
For ASP.NET and ASP.NET Core applications, the value will default to the server's name. For other application types, the value will default to the computer's name only when the `SendDefaultPii` is set to `true`, because the computer's name can be considered personally identifiable information (PII) in the case of a desktop or mobile application.
152152

docs/platforms/flutter/configuration/options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ If you enable this option, be sure to manually remove what you don't want to sen
106106

107107
<ConfigKey name="server-name">
108108

109-
This option can be used to supply a "server name." When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
109+
This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
110110

111111
Most SDKs will attempt to auto-discover this value.
112112

docs/platforms/java/common/configuration/options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ If you enable this option, be sure to manually remove what you don't want to sen
106106

107107
<ConfigKey name="server-name">
108108

109-
This option can be used to supply a "server name." When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
109+
This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
110110

111111
Most SDKs will attempt to auto-discover this value.
112112

docs/platforms/javascript/common/configuration/options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Grouping in Sentry is different for events with stack traces and without. As a r
7979

8080
<SdkOption name="serverName" type='string' categorySupported={['server', 'serverless']}>
8181

82-
This option can be used to supply a "server name." When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
82+
This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
8383

8484
Most SDKs will attempt to auto-discover this value.
8585

docs/platforms/php/common/configuration/options.mdx

Lines changed: 111 additions & 119 deletions
Large diffs are not rendered by default.

docs/platforms/php/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sdk: sentry.php
44
caseStyle: snake_case
55
supportLevel: production
66
description: Learn how to set up Sentry in your PHP application.
7+
categories:
8+
- server
79
---
810

911
## Prerequisites

docs/platforms/unity/configuration/options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ If you enable this option, be sure to manually remove what you don't want to sen
152152

153153
<ConfigKey name="server-name">
154154

155-
This option can be used to supply a "server name." When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
155+
This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server.
156156

157157
For ASP.NET and ASP.NET Core applications, the value will default to the server's name. For other application types, the value will default to the computer's name only when the `SendDefaultPii` is set to `true`, because the computer's name can be considered personally identifiable information (PII) in the case of a desktop or mobile application.
158158

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
```php
22
\Sentry\init([
3-
'dsn' => '___PUBLIC_DSN___',
43
'environment' => 'production',
54
]);
65
```
6+
7+
By default, the SDK will try to read this value from the `SENTRY_ENVIRONMENT` environment variable.

0 commit comments

Comments
 (0)