Skip to content

Instantly share code, notes, and snippets.

View caseyduquettesc's full-sized avatar

Casey caseyduquettesc

  • Snap Inc
  • CA
View GitHub Profile
@caseyduquettesc
caseyduquettesc / SentryGrpcClientInterceptor.java
Last active June 10, 2021 03:54
Sentry gRPC Performance Monitoring
/**
The MIT License
Copyright (c) 2021 Casey Duquette, Snap Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@caseyduquettesc
caseyduquettesc / sentry_dist.sql
Created December 1, 2020 23:42
sentry clickhouse ddl's
CREATE TABLE default.sentry_dist (
`event_id` FixedString(32),
`project_id` UInt64,
`group_id` UInt64,
`timestamp` DateTime,
`deleted` UInt8,
`retention_days` UInt16,
`platform` Nullable(String),
`message` Nullable(String),
`primary_hash` Nullable(FixedString(32)),
@caseyduquettesc
caseyduquettesc / slack.patch
Last active November 11, 2020 21:11
Sentry On Premise backport of https://github.com/getsentry/sentry/pull/19446 to 9.1.2 to fix slack
diff --git a/src/sentry/integrations/slack/integration.py b/src/sentry/integrations/slack/integration.py
index 0926a1132d..0264d10c24 100644
--- a/src/sentry/integrations/slack/integration.py
+++ b/src/sentry/integrations/slack/integration.py
@@ -75,13 +75,17 @@ class SlackIntegrationProvider(IntegrationProvider):
'links:read',
'links:write',
]) if not settings.SLACK_INTEGRATION_USE_WST else frozenset([
- 'channels:read',
- 'groups:read',