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
2 changes: 1 addition & 1 deletion java/examples/arconia-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ ARCONIA_VERSION=0.30.0 ./run_e2e.sh # another BOM version
- Resource carries `project_name` and `project_type=observe`; one request is one trace with one root server span.
- `/fail` exports an ERROR span; context close flushes (the batch delay is 5 s, the test closes sooner).
- `arconia.otel.traces.enabled=false` and `arconia.otel.traces.exporter.type=none` export nothing.
- Arconia's default compression is gzip (so `compression: none` is required).
- Arconia's default compression is gzip. The recipe sets `compression: none` so it also works with self-hosted collectors older than v1.56.0; Future AGI Cloud and self-hosted v1.56.0 and later accept gzip, so you can drop the setting there.
- The documented protocol value `http-protobuf` silently disables the exporter on 0.30.0 and 0.31.0; leave `protocol` unset.
- With defaults, query strings, exception messages and stack traces are not on the wire; no host name, user name or local path either.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ arconia:
endpoint: ${FI_BASE_URL:https://api.futureagi.com}/tracer/v1/traces
# protocol: leave unset. HTTP/protobuf is the default. Writing the documented value
# "http-protobuf" silently disables the exporter on Arconia 0.30.0 and 0.31.0.
compression: none # Arconia's default is gzip and Future AGI rejects gzip bodies
compression: none # Optional. Arconia defaults to gzip, which Future AGI Cloud and v1.56.0+ accept; none also works with older self-hosted collectors
headers:
X-Api-Key: ${FI_API_KEY}
X-Secret-Key: ${FI_SECRET_KEY}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void exportsHttpProtobufWithBothHeadersAndProjectNameOnTheResource() throws Exce
assertEquals("application/x-protobuf", post.headers().get("Content-Type"));
assertEquals(KEY, post.headers().get("X-Api-Key"));
assertEquals(SECRET, post.headers().get("X-Secret-Key"));
assertFalse(post.headers().containsKey("Content-Encoding"), "Future AGI rejects gzip bodies");
assertFalse(post.headers().containsKey("Content-Encoding"), "the recipe sends uncompressed bodies (compression: none)");

Map<String, String> resource = resourceAttributes(post);
assertEquals("arconia-test", resource.get("project_name"));
Expand Down Expand Up @@ -119,7 +119,7 @@ void exporterTypeNoneExportsNothing() throws Exception {
}

@Test
void arconiaDefaultCompressionIsGzipSoTheRecipeMustSetNone() throws Exception {
void arconiaDefaultCompressionIsGzipSoTheRecipeSetsNoneExplicitly() throws Exception {
// Remove the override by blanking it; Arconia falls back to its own default.
List<OtlpRecorder.Post> posts = run(Map.of("arconia.otel.traces.exporter.otlp.compression", "gzip"), "/hello");
assertEquals("gzip", posts.get(0).headers().get("Content-Encoding"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ quarkus.langchain4j.timeout=60s
quarkus.otel.exporter.otlp.traces.protocol=http/protobuf
quarkus.otel.exporter.otlp.traces.endpoint=${FI_BASE_URL:https://api.futureagi.com}/tracer
quarkus.otel.exporter.otlp.traces.headers=X-Api-Key=${FI_API_KEY},X-Secret-Key=${FI_SECRET_KEY}
# Already Quarkus' default. Kept explicit: the Future AGI collector does not accept gzip bodies.
# Already Quarkus' default. Kept explicit so export also works with self-hosted collectors older than v1.56.0; Future AGI Cloud and v1.56.0+ accept gzip.
quarkus.otel.exporter.otlp.traces.compression=none
quarkus.otel.resource.attributes=project_name=${FI_PROJECT_NAME},project_type=observe

Expand Down
Loading