Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/java_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
# Replace the RocketMQ client version.
- name: Replace RocketMQ Client Version
run: |
sed -i 's/org\.apache\.rocketmq:rocketmq-client-java:[^"]*/org.apache.rocketmq:rocketmq-client-java:${{ steps.get_version.outputs.version }}/' instrumentation/rocketmq/rocketmq-client/rocketmq-client-5.0/testing/build.gradle.kts
sed -i 's/org\.apache\.rocketmq:rocketmq-client-java:[^"]*/org.apache.rocketmq:rocketmq-client-java:${{ steps.get_version.outputs.version }}/' instrumentation/rocketmq/rocketmq-client-5.0/testing/build.gradle.kts
# Use JDK 17.
- name: Use JDK 21
uses: actions/setup-java@v3
Expand All @@ -75,4 +75,4 @@ jobs:
# Build the rocketmq opentelemetry test.
- name: Build OpenTelemetry Instrumentation Test
run: |
./gradlew :instrumentation:rocketmq:rocketmq-client:rocketmq-client-5.0:javaagent:test -i
./gradlew :instrumentation:rocketmq:rocketmq-client-5.0:javaagent:test -i
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public static void main(String[] args) throws ClientException {
// Set the subscription for the consumer.
.setSubscriptionExpressions(Collections.singletonMap(topic, filterExpression))
.build();
// You can calculate the number of messages that need to be received each time
// and the invisible time based on the estimated processing time of each message.
// Max message num for each long polling.
int maxMessageNum = 16;
// Set message invisible duration after it is received.
Expand Down
Loading