Skip to content

Commit

Permalink
instr(server): Use project_key instead of org_id (#4399)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjbayer authored Dec 17, 2024
1 parent fc69800 commit 683d881
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions relay-server/src/endpoints/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,16 +425,10 @@ fn emit_envelope_metrics(envelope: &Envelope) {
relay_log::with_scope(
|scope| {
// Set the organization as user so we can figure out who uses this.
scope.set_user(Some(relay_log::sentry::User {
id: Some(
envelope
.meta()
.get_partial_scoping()
.organization_id
.to_string(),
),
..Default::default()
}));
scope.set_tag(
"project_key",
envelope.meta().get_partial_scoping().project_key,
);
},
|| {
relay_log::sentry::capture_message(
Expand Down

0 comments on commit 683d881

Please sign in to comment.