sentry开启logs功能

作者:Administrator 发布时间: 2025-09-01 阅读量:2 评论数:0

sentry开启logs功能

25.9.0使用的25.8.0的配置

增加这些:

"organizations:performance-trace-explorer", # 🟢 Add this one!

# 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",
            "organizations:ourlogs-infinite-scroll",
            "organizations:ourlogs-replay-ui", # This does nothing, on Sentry SaaS this is disabled
            "organizations:ourlogs-saved-queries", # This is commented, you may enable this.
        )

以下是原文中节选:

SENTRY_FEATURES.update(
    {
        feature: True
        for feature in (
            "organizations:discover",
            # ...the rest of the features
        # Performance/Tracing/Spans related flags
        + (
            "organizations:performance-view",
            "organizations:performance-trace-explorer", # 🟢 Add this one!
            "organizations:visibility-explore-view",    # 🟢 Make sure this is here!
            "organizations:transaction-metrics-extraction",
            # ...the rest of the 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",
            "organizations:ourlogs-infinite-scroll",
            "organizations:ourlogs-replay-ui", # This does nothing, on Sentry SaaS this is disabled
            #"organizations:ourlogs-saved-queries", # This is commented, you may enable this.
        )
    }
)

参考链接:
https://github.com/getsentry/self-hosted/issues/3560

评论