Comments (7)
Yes, please try to invoke your process with the /odigos-launcher/launch /path/to/your/app
from opentelemetry-go-instrumentation.
I guess /odigos-launcher/launch
will allocate an area for the application(emojivoto-emoji-svc
)
And the area is used for eBPF program writing data to user process(emojivoto-emoji-svc
), see alloc.h
.
but it's my guess, not sure it's right 😂
from opentelemetry-go-instrumentation.
Yes exactly. As this instrumentation adds trace id / span id to requests we need to allocate some memory so Go can access those before sending the request. The launcher does exactly that - it allocates about 2Mb of memory off heap and then executes the application. Later when the instrumentation generates those ids they will be written to the area allocated by the launcher.
from opentelemetry-go-instrumentation.
Did you launch your application with the launcher binary as shown in this example yaml?
https://github.com/keyval-dev/opentelemetry-go-instrumentation/blob/13805d935d31fe521cec9a4800346e58c057e55c/docs/getting-started/emojivoto-instrumented.yaml#L44-L46
from opentelemetry-go-instrumentation.
I wrote a simple http server and start it through it's binary. I didn't follow the demo.
I guess /odigos-launcher/launch
or /usr/local/bin/emojivoto-emoji-svc
may create some memory area for the target process.
from opentelemetry-go-instrumentation.
Thanks edeNFed, I will try this.
from opentelemetry-go-instrumentation.
@edeNFed can you tell what this /odigos-launcher/launch is for? What it does?
from opentelemetry-go-instrumentation.
Related Issues (20)
- Remove OTEL_TARGET_EXE and auto discover processes
- Include bpf includes within the project HOT 2
- can this work with serverless platforms like Cloud Run? HOT 2
- [Question] How to configure emojivoto to propagate context? HOT 1
- Doubt about trace ID HOT 3
- Support a secure grpc endpoint?
- [Bug/Question] Same Trace ID for different requests HOT 1
- Error to trace
- Error during instrumentation: `invalid argument: ;`
- How to add request-id/trace-id to http request header? HOT 5
- Got panic "cant find keyval map" HOT 1
- Generate ID for x-Ray HOT 3
- Unable to instrument go binary file which doesn't contain ".gosymtab" section
- All functions instrumentation
- Code segment in process memory mapping not always writable HOT 3
- `net/http` instrumentation (eBPF probe) is not working HOT 6
- Compatibility with lower version kernels.
- Go service is stuck in crashloopbackoff after instrumentation. Am I doing something wrong?
- AMQP example
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 opentelemetry-go-instrumentation.