Skip to content

Commit c95cd42

Browse files
authored
Update metrics.mdx (#14181)
1 parent c26ffdc commit c95cd42

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

develop-docs/backend/application-domains/metrics.mdx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -120,27 +120,3 @@ SENTRY_METRICS_OPTIONS = {
120120
```
121121

122122
Once configured, the metrics backend will emit to the DogStatsD server and then flushed periodically to Datadog over HTTPS.
123-
124-
## Logging Backend
125-
126-
The `LoggingBackend` reports all operations to the `sentry.metrics` logger. In addition to the metric name and value, log messages also include extra data such as the `instance` and `tags` values which can be displayed using a custom formatter.
127-
128-
```python
129-
SENTRY_METRICS_BACKEND = 'sentry.metrics.logging.LoggingBackend'
130-
131-
LOGGING['loggers']['sentry.metrics'] = {
132-
'level': 'DEBUG',
133-
'handlers': ['console:metrics'],
134-
'propagate': False,
135-
}
136-
137-
LOGGING['formatters']['metrics'] = {
138-
'format': '[%(levelname)s] %(message)s; instance=%(instance)r; tags=%(tags)r',
139-
}
140-
141-
LOGGING['handlers']['console:metrics'] = {
142-
'level': 'DEBUG',
143-
'class': 'logging.StreamHandler',
144-
'formatter': 'metrics',
145-
}
146-
```

0 commit comments

Comments
 (0)