Skip to content

Add Ourlogs #3560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #3625
aldy505 opened this issue Feb 3, 2025 · 3 comments
Open
Tracked by #3625

Add Ourlogs #3560

aldy505 opened this issue Feb 3, 2025 · 3 comments

Comments

@aldy505
Copy link
Collaborator

aldy505 commented Feb 3, 2025

Problem Statement

Product Discussion: getsentry/sentry#86804
JS SDK docs: getsentry/sentry-javascript#15916

Solution Brainstorm

The way we'll tell you how to configure this should be versioned (learned this the hard way from User Feedback feature). Grab the version you're currently on (or if yours is higher than any of these, choose the highest one).

@aldy505 aldy505 changed the title Add Logs Add Ourlogs Feb 3, 2025
@aldy505
Copy link
Collaborator Author

aldy505 commented Feb 3, 2025

Setup Guide for 25.2.0

Modify sentry.conf.py:

SENTRY_FEATURES = # ...
  ) +
  # Ourlogs
  (
    "organizations:ourlogs-enabled",
    "organizations:ourlogs-ingestion",
    "projects:ourlogs-breadcrumb-extraction",
  )

Modify docker-compose.yml

  snuba-ourlogs-consumer:
    <<: *snuba_defaults
    command: rust-consumer --storage ourlogs --consumer-group ourlogs_group --auto-offset-reset=latest --max-batch-time-ms 1000 --no-strict-offset-reset --use-rust-processor
    profiles:
      - feature-complete

Proof:

Image

@aldy505
Copy link
Collaborator Author

aldy505 commented Mar 18, 2025

Setup Guide for 25.3.0

Modify sentry/sentry.conf.py:

SENTRY_FEATURES = # ...
  ) +
  # Ourlogs
  (
    "organizations:ourlogs-enabled",
    "organizations:ourlogs-ingestion",
    "projects:ourlogs-breadcrumb-extraction",
  )

Modify sentry/config.yml:

relay.ourlogs-breadcrumb-extraction.sample-rate: 1.0
relay.ourlogs-ingestion.sample-rate: 1.0

Modify docker-compose.yml

  snuba-ourlogs-consumer:
    <<: *snuba_defaults
    command: rust-consumer --storage eap_items_log --consumer-group ourlogs_group --auto-offset-reset=latest --max-batch-time-ms 1000 --no-strict-offset-reset --use-rust-processor
    profiles:
      - feature-complete

Proof:

Image

@aldy505
Copy link
Collaborator Author

aldy505 commented Apr 17, 2025

Setup Guide for 25.4.0

Date of writing: 2025-04-17

Modify sentry/sentry.conf.py:

SENTRY_FEATURES = # ...
  ) +
  # Ourlogs
  (
        "organizations:ourlogs-enabled",
        "organizations:ourlogs-ingestion",
        "organizations:ourlogs-stats",
        "organizations:ourlogs-graph",
        "organizations:ourlogs-visualize-sidebar",
        "organizations:ourlogs-dashboards",
        "organizations:ourlogs-alerts",
        "organizations:ourlogs-live-refresh",
        "projects:ourlogs-breadcrumb-extraction",
  )

Modify sentry/config.yml:

relay.ourlogs-breadcrumb-extraction.sample-rate: 1.0
relay.ourlogs-ingestion.sample-rate: 1.0

Modify docker-compose.yml

  snuba-ourlogs-consumer:
    <<: *snuba_defaults
    command: rust-consumer --storage eap_items_log --consumer-group ourlogs_group --auto-offset-reset=latest --max-batch-time-ms 1000 --no-strict-offset-reset --use-rust-processor
    profiles:
      - feature-complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant