Skip to content

Commit 900ccb6

Browse files
committed
Annotation ingest input and output by default
1 parent 1ffe02f commit 900ccb6

File tree

8 files changed

+13
-9
lines changed

8 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.6] - 2026-03-09
9+
### Changed
10+
- **Trace**: Annotation ingest input and output by default
11+
812
## [0.1.5] - 2026-02-26
913
### Changed
1014
- **Trace**: Support config span queue

cozeloop-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>com.coze</groupId>
1010
<artifactId>cozeloop-java</artifactId>
11-
<version>0.1.5</version>
11+
<version>0.1.6</version>
1212
<relativePath>../pom.xml</relativePath>
1313
</parent>
1414

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.coze.loop.internal;
22

33
public class Constants {
4-
public static final String Version = "0.1.5";
4+
public static final String Version = "0.1.6";
55
public static final String TraceContextHeaderParent = "X-Cozeloop-Traceparent";
66
public static final String TraceContextHeaderBaggage = "X-Cozeloop-Tracestate";
77
}

cozeloop-spring-boot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>com.coze</groupId>
1010
<artifactId>cozeloop-java</artifactId>
11-
<version>0.1.5</version>
11+
<version>0.1.6</version>
1212
<relativePath>../pom.xml</relativePath>
1313
</parent>
1414

cozeloop-spring-boot-starter/src/main/java/com/coze/loop/spring/annotation/CozeTrace.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
*
3333
* @return true to capture arguments
3434
*/
35-
boolean captureArgs() default false;
35+
boolean captureArgs() default true;
3636

3737
/**
3838
* Whether to capture method return value as span output. If true, the return value will be
3939
* serialized to JSON.
4040
*
4141
* @return true to capture return value
4242
*/
43-
boolean captureReturn() default false;
43+
boolean captureReturn() default true;
4444

4545
/**
4646
* SpEL expression to extract input from method context. Available variables: #args (argument

examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<parent>
99
<groupId>com.coze</groupId>
1010
<artifactId>cozeloop-java</artifactId>
11-
<version>0.1.5</version>
11+
<version>0.1.6</version>
1212
<relativePath>../pom.xml</relativePath>
1313
</parent>
1414

examples/src/main/java/trace/annotation/AnnotationTraceExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public void simpleTrace(String input) {
7777
System.out.println("Processing simple trace: " + input);
7878
}
7979

80-
/** Customization: Specify span name, type, and capture input/output. */
81-
@CozeTrace(name = "llm_chat_v1", spanType = "model", captureArgs = true, captureReturn = true)
80+
/** Customization: Specify span name, type, and not capture input/output. */
81+
@CozeTrace(name = "llm_chat_v1", spanType = "model", captureArgs = false, captureReturn = false)
8282
public String customTrace(String model, String query) {
8383
System.out.println("Processing custom trace with model: " + model);
8484
return "Response for " + query;

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>com.coze</groupId>
99
<artifactId>cozeloop-java</artifactId>
10-
<version>0.1.5</version>
10+
<version>0.1.6</version>
1111
<packaging>pom</packaging>
1212

1313
<name>CozeLoop Java SDK</name>

0 commit comments

Comments
 (0)