Closed
Description
Environment
- Self hosted Sentry: 23.6.2
sentry
: 0.34.0sentry-actix
: 0.34.0
Steps to Reproduce
- Create an Actix project with
sentry
andsentry-actix
crates - Set the
SENTRY_DSN
environment variable. - Initialise Sentry with the following configuration:
let _guard = sentry::init(sentry::ClientOptions {
release: sentry::release_name!(),
debug: true,
attach_stacktrace: true,
send_default_pii: true,
traces_sample_rate: 1.0,
auto_session_tracking: true,
session_mode: sentry::SessionMode::Request,
..Default::default()
});
- Use the sentry-actix middleware:
.wrap(sentry_actix::Sentry::with_transaction())
- Send a request to one of the endpoints.
Expected Result
On the server, I should be able to see the remote IP address from which the request was made in the REMOTE_ADDR field.
Actual Result
The REMOTE_ADDR field is missing in the event details on the server.
Note
If I use sentry::capture_error at step 4, the REMOTE_ADDR field can be seen on the server.
Metadata
Metadata
Assignees
Labels
No labels