无法在 Sentry 仪表板中看到问题

问题描述 投票:0回答:1

我通过在主

pom.xml
中提及哨兵依赖项和插件详细信息,将 Sentry 与我的 java 项目集成。

我已在 properties 文件中包含哨兵应用程序 URL 和访问令牌。

建设进展顺利,但我仍然无法在 Sentry 仪表板中看到问题详细信息。

主要

pom.xml

<dependency>
    <groupId>io.sentry</groupId>
    <artifactId>sentry-maven-plugin</artifactId>
    <version>0.0.7</version>
</dependency>

<dependency>
    <groupId>io.sentry</groupId>
    <artifactId>sentry-spring-boot-starter</artifactId>
    <version>4.3.0</version>
</dependency>

<plugin>
    <groupId>io.sentry</groupId>
    <artifactId>sentry-maven-plugin</artifactId>
    <version>0.0.7</version>
    <extensions>true</extensions>

    <configuration>
        <debugSentryCli>true</debugSentryCli>
        <skip>false</skip>
        <skipSourceBundle>false</skipSourceBundle>
        <skipAutoInstall>false</skipAutoInstall>
        <dsn>http://dns-url</dsn>
        <org>your_organization_slug</org>
        <authToken>your_auth_token</authToken>

        <!-- Configure includes and excludes to scan all files -->
        <includes>
            <include>**/*.java</include>
        </includes>

        <!-- Optionally, you can exclude specific files or directories -->
        <!-- <excludes>
            <exclude>path/to/exclude</exclude>
        </excludes> -->
    </configuration>

    <executions>
        <execution>
            <goals>
                <goal>uploadSourceBundle</goal>
            </goals>
        </execution>
    </executions>
</plugin>

sentry.properties

# Sentry DSN (replace with your actual DSN)
dsn=http://dns-url

# Sentry Auth Token (replace with your actual auth token)
authToken=your_auth_token

# Sentry Organization Slug (replace with your organization's slug)
org=your_organization_slug

我在控制台输出中收到以下异常:

using this in pom.xml but after running the build using mvn clean install build went success but sentry is not capturing any issues related to this repo but in console am able to see this 

WARN    2024-03-25 11:43:09.152728153 +05:30 Source uploads are not supported by the configured Sentry server 
sentry cartalyst-sentry apache-sentry
1个回答
0
投票

您是否在项目的 main 方法中初始化了哨兵?比如:

Sentry.init(sentryOptions)
© www.soinside.com 2019 - 2024. All rights reserved.