Comments (7)
Hi, does the traces that you find prior to this error message look correct?
Is there anything strange in theses traces, like high number of specific spans, or is is it deeply nested?
from aws-otel-java-instrumentation.
Hi rapphil,
the traces prior to the error are looking ok.
Could it be that there are problems with parallel processing? We are using kotlin coroutines to do things in parallel.
Here are the complete logs of one example call:
info TracesExporter {"kind": "exporter", "data_type": "traces", "name": "logging", "resource spans": 1, "spans": 19}
2023-07-03T09:40:25.135Z debug [email protected]/awsxray.go:68 TracesExporter {"kind": "exporter", "data_type": "traces", "name": "awsxray", "type": "awsxray", "name": "awsxray", "#spans": 7}
2023-07-03T09:40:25.135Z debug [email protected]/awsxray.go:80 request: {
TraceSegmentDocuments: [
"{\"name\":\"<snip...s3 call>\"type\":\"subsegment\"}\n",
"{\"name\":\"<snip...s3 call>",
"{\"name\":\"<snip...database call>",
"{\"name\":\"<snip...>",
"{\"name\":\"HealthController.health\",\"id\":\"d2336dcff1eec3d9\",\"start_time\":1688377221.398077,\"service\":{\"version\":\"7a083a57c8ec9cecb2bcc7b6e3d64ca29332a1e44ffc331e99043c9f649435a6\"},\"origin\":\"AWS::ECS::Fargate\",\"trace_id\":\"1-64a28428-03698151c619e1014355530a\",\"end_time\":1688377221.4458563,\"fault\":false,\"error\":false,\"throttle\":false,\"aws\":{\"cloudwatch_logs\":[{\"log_group\":\"<snip...>\"parent_id\":\"e7f85d8dc4ed1cf1\",\"type\":\"subsegment\"}\n",
"{\"name\":\"<snip...>"type\":\"subsegment\"}\n",
"{\"name\":\"<snip...>\"type\":\"subsegment\"}\n"
]
} {"kind": "exporter", "data_type": "traces", "name": "awsxray"}
2023-07-03T09:40:25.155Z debug [email protected]/awsxray.go:90 response: {
UnprocessedTraceSegments: [
{
ErrorCode: "InvalidSegment",
Id: "09eb84f2fd77cb63",
Message: "Trace Size Exceeded. Reduce the number of segments per trace and the size of your segment documents."
},
{
ErrorCode: "InvalidSegment",
Id: "e4032e122cd6575b",
Message: "Trace Size Exceeded. Reduce the number of segments
from aws-otel-java-instrumentation.
This can occur by you having a large number of traces and you get rate limited.
Any idea how many spans and traces you are creating per second?
Can you try a percentage based sampling rate instead of always on?
from aws-otel-java-instrumentation.
Hi,
I tried it with OTEL_TRACES_SAMPLER "traceidratio" and OTEL_TRACES_SAMPLER_ARG “0.25”.
This had no effect.
I tried the plain aws sdk with the aws x-ray daemon and it seems that there are problems with multithreading.
I removed our multithreading code for the test and it seems to work.
I will try the otel solution without multithreading and see if it is a difference.
(We are using kotlin coroutines and java parallelStream).
from aws-otel-java-instrumentation.
This looks like a bug around instrumentation then.
Can you make a minimal code sample that reproduces the issue?
from aws-otel-java-instrumentation.
This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled
from aws-otel-java-instrumentation.
This issue was closed because it has been marked as stale for 30 days with no activity.
from aws-otel-java-instrumentation.
Related Issues (20)
- Lack of a docker image HOT 3
- OTEL trace id mismatches with XRay trace id HOT 5
- Visual presentation and Resource Detection for eks HOT 4
- How to suppress export logs in open-telemetry agent? HOT 4
- Update actions to not use Node.js 12 HOT 1
- Logback MDC `AWS-XRAY-TRACE-ID` and `trace_id` mismatch sporadically HOT 9
- AWS Lambda: Unable to debug the issue HOT 1
- Does the xray remote sampler respect parent sampling decision? HOT 4
- FRAME_SIZE_ERROR: 4740180 HOT 2
- Using more than one tracing systems with AWS Java Agent #2333 HOT 2
- Upgrade opentelemetry-java to 1.30.x HOT 1
- AwsXrayPropagator can create invalid trace headers during baggage propagation HOT 10
- AWS OTEL agents in Docker images HOT 3
- [ci] Add new EKS cluster targets HOT 1
- Support for OTEL Synchronous Gauge HOT 2
- http.server.duration has exceeded the maximum allowed cardinality HOT 3
- ADOT Java Agent v1.31.1 - High Cardinality Metrics
- Java autoinstrumentation does not support PKIX algorithm HOT 2
- Clarification about how to autoinstrumenting a spring-boot 3 with micrometer tracing and ADOT agent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-otel-java-instrumentation.