Java源码示例:io.sentry.DefaultSentryClientFactory

示例1
@Override
public String getProperty(String key) {
    switch (key) {
        case DefaultSentryClientFactory.IN_APP_FRAMES_OPTION:
            return config.inAppPackages.map(p -> join(",", p))
                    .filter(s -> !Objects.equals(s, "*"))
                    .orElse("");
        case DefaultSentryClientFactory.ENVIRONMENT_OPTION:
            return config.environment.orElse(null);
        case DefaultSentryClientFactory.RELEASE_OPTION:
            return config.release.orElse(null);
        // New SentryConfig options should be mapped here
        default:
            return null;
    }
}