Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
import java.nio.BufferUnderflowException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public class NativeEventUtils {

public static byte[] readBytes(final @NotNull InputStream stream) throws IOException {
Expand Down
2 changes: 2 additions & 0 deletions sentry-jdbc/src/main/java/io/sentry/jdbc/DatabaseUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
import io.sentry.util.StringUtils;
import java.net.URI;
import java.util.Locale;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class DatabaseUtils {

private static final @NotNull DatabaseDetails EMPTY = new DatabaseDetails(null, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
import io.opentelemetry.api.common.Attributes;
import io.opentelemetry.sdk.trace.data.SpanData;
import io.sentry.ISpan;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class OtelSpanUtils {
public static <T> void maybeTransferOtelAttribute(
final @NotNull SpanData otelSpan,
Expand Down
2 changes: 2 additions & 0 deletions sentry/src/main/java/io/sentry/util/ClassLoaderUtils.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package io.sentry.util;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class ClassLoaderUtils {

public static @NotNull ClassLoader classLoaderOrDefault(final @Nullable ClassLoader classLoader) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
import io.sentry.SentryOptions;
import java.util.List;
import java.util.Properties;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class DebugMetaPropertiesApplier {

public static @NotNull String DEBUG_META_PROPERTIES_FILENAME = "sentry-debug-meta.properties";
Expand Down
1 change: 1 addition & 0 deletions sentry/src/main/java/io/sentry/util/ErrorUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class ErrorUtils {

/** Checks if an error has been ignored. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class EventProcessorUtils {

public static List<EventProcessor> unwrap(
Expand Down
2 changes: 2 additions & 0 deletions sentry/src/main/java/io/sentry/util/LifecycleHelper.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package io.sentry.util;

import io.sentry.ISentryLifecycleToken;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class LifecycleHelper {

public static void close(final @Nullable Object tokenObject) {
Expand Down
2 changes: 2 additions & 0 deletions sentry/src/main/java/io/sentry/util/LoadClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
import io.sentry.SentryLevel;
import io.sentry.SentryOptions;
import java.util.Map;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/** An Adapter for making Class.forName testable */
@ApiStatus.Internal
@Open
public class LoadClass {

Expand Down
2 changes: 2 additions & 0 deletions sentry/src/main/java/io/sentry/util/MapObjectReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
import java.util.List;
import java.util.Map;
import java.util.TimeZone;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
@SuppressWarnings("unchecked")
public final class MapObjectReader implements ObjectReader {

Expand Down
2 changes: 2 additions & 0 deletions sentry/src/main/java/io/sentry/util/ScopesUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io.sentry.Scopes;
import io.sentry.ScopesAdapter;
import io.sentry.Sentry;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;

/**
Expand All @@ -13,6 +14,7 @@
* <p>It walks up the parents of each scopes instance until it reaches a parent of null. The scopes
* without a parent are the ones created in Sentry.init.
*/
@ApiStatus.Internal
public final class ScopesUtil {

public static void printScopesChain(final @Nullable IScopes scopes) {
Expand Down
2 changes: 2 additions & 0 deletions sentry/src/main/java/io/sentry/util/SentryRandom.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.sentry.util;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;

/**
Expand All @@ -9,6 +10,7 @@
* significantly. We opted for this approach as it wasn't easily possible to vendor
* ThreadLocalRandom since it's using advanced features that can cause java.lang.IllegalAccessError.
*/
@ApiStatus.Internal
public final class SentryRandom {

private static final @NotNull SentryRandomThreadLocal instance = new SentryRandomThreadLocal();
Expand Down
1 change: 1 addition & 0 deletions sentry/src/main/java/io/sentry/util/SpanUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class SpanUtils {

/**
Expand Down
1 change: 1 addition & 0 deletions sentry/src/main/java/io/sentry/util/TracingUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@ApiStatus.Internal
public final class TracingUtils {

public static void startNewTrace(final @NotNull IScopes scopes) {
Expand Down
2 changes: 2 additions & 0 deletions sentry/src/main/java/io/sentry/util/UUIDGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
package io.sentry.util;

import java.util.UUID;
import org.jetbrains.annotations.ApiStatus;

/**
* Utility class for generating UUIDs and half-length (1 long) UUIDs. Adapted from `java.util.UUID`
* to use a faster random number generator.
*/
@ApiStatus.Internal
public final class UUIDGenerator {

@SuppressWarnings("NarrowingCompoundAssignment")
Expand Down
2 changes: 2 additions & 0 deletions sentry/src/main/java/io/sentry/util/UUIDStringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@

import java.util.Arrays;
import java.util.UUID;
import org.jetbrains.annotations.ApiStatus;

/**
* Utility class to convert UUIDs and longs to Sentry ID Strings
*
* <p>Adapted from <a href="https://github.com/jchambers/">Jon Chambers'</a> work <a
* href="https://github.com/jchambers/fast-uuid">here</a>.
*/
@ApiStatus.Internal
public final class UUIDStringUtils {

private static final int SENTRY_UUID_STRING_LENGTH = 32;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.VisibleForTesting;
Expand All @@ -14,6 +15,7 @@
* Utility class for network capture operations shared across HTTP client integrations. Provides
* common logic for determining what network data to capture and filtering headers.
*/
@ApiStatus.Internal
public final class NetworkDetailCaptureUtils {

private NetworkDetailCaptureUtils() {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.sentry.util.network;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand All @@ -9,6 +10,7 @@
* see
* https://github.com/getsentry/sentry-javascript/blob/632f0b953d99050c11b0edafb9f80b5f3ba88045/packages/replay-internal/src/types/performance.ts#L133-L140
*/
@ApiStatus.Internal
public final class NetworkRequestData {
private @Nullable final String method;
private @Nullable Integer statusCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.sentry.util.network;

import java.util.Map;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand All @@ -9,6 +10,7 @@
* href="https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/types/request.ts">JS
* SDK types</a>
*/
@ApiStatus.Internal
public final class ReplayNetworkRequestOrResponse {
private final @Nullable Long size;
private final @Nullable NetworkBody body;
Expand Down
Loading