Skip to content
Merged
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
8 changes: 2 additions & 6 deletions src/main/java/com/google/genai/BraintrustInstrumentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import io.opentelemetry.api.OpenTelemetry;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.logging.Logger;
import lombok.extern.slf4j.Slf4j;

/**
Expand All @@ -13,9 +12,6 @@
*/
@Slf4j
public class BraintrustInstrumentation {
private static final Logger logger =
Logger.getLogger(BraintrustInstrumentation.class.getName());

/**
* Wraps a Client's internal ApiClient with an instrumented version.
*
Expand Down Expand Up @@ -56,7 +52,7 @@ public static Client wrapClient(Client client, OpenTelemetry openTelemetry) thro
replaceApiClientInService(client.async.tunings, instrumentedApiClient);
}

logger.info("Successfully instrumented Gemini client");
log.debug("Successfully instrumented Gemini client");
return client;
}

Expand All @@ -72,7 +68,7 @@ private static void replaceApiClientInService(Object service, ApiClient instrume
setFinalField(service, apiClientField, instrumentedApiClient);
} catch (NoSuchFieldException e) {
// Some services might not have an apiClient field
logger.fine("No apiClient field found in " + service.getClass().getSimpleName());
log.info("No apiClient field found in " + service.getClass().getSimpleName());
}
}

Expand Down