Skip to content

Commit c946565

Browse files
Qardclaude
andcommitted
Wire OpenTelemetry into ClassifiersExample
Without `braintrust.openTelemetryCreate()` the eval runs against the no-op tracer and no spans reach Braintrust, so the experiment shows up empty in the UI despite the REST experiment record being created. Every other example under examples/ already makes this call right after `Braintrust.get()` (see e.g. examples/experiment/.../ExperimentExample.java). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2ce4cdc commit c946565

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

examples/classifiers/src/main/java/dev/braintrust/examples/ClassifiersExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
public class ClassifiersExample {
2727
public static void main(String[] args) throws Exception {
2828
var braintrust = Braintrust.get();
29+
braintrust.openTelemetryCreate();
2930

3031
// 1. Single-label classifier.
3132
Classifier<String, String> intentClassifier =

0 commit comments

Comments
 (0)