github.com/gin-gonic/gin
HTTP web framework ⭐️net/http
go standard library for http server and clienthttp.route
parameter to be properly extracted by Go auto instrumentation, you should use Go 1.22 or above and
declare a template handler as described in this article.net/http
go standard library for http server and clientgithub.com/gocql/gocql
⭐️ versions >= v1.0.0
. database client library for Apache Cassandragithub.com/elastic/go-elasticsearch/v8
⭐️ versions >= v8.0.0database/sql
go standard library for SQL database accessgithub.com/rabbitmq/amqp091-go
⭐️ versions >= v1.4.0
. messaging client for RabbitMQgithub.com/segmentio/kafka-go
versions >= v0.4.1
. messaging client for Apache Kafkagithub.com/apache/pulsar-client-go
⭐️ versions >= v0.12.0
. messaging client for Apache Pulsargithub.com/IBM/sarama
⭐️ versions >= v1.40.0
. messaging client for Apache Kafkagoogle.golang.org/grpc
versions >= v1.14.0
. rpc client and server for gRPC frameworknet/http
package Odigos is able to determine the http.request.method
by probing the Method
field in the current Request
.
Doing so relies on knowing the exact memory location of this field. This is known as the field’s “offset” (because it refers to the field’s location as a
number of bytes offset from the start of the current struct). With this information, our eBPF code can access the value directly.
However, most production Go programs do not preserve this offset information at compile time. Only Go programs compiled with debug information
will include this information by default. To work with all Go programs, Odigos ships with a precompiled list of known offsets for all currently supported
versions of instrumented libraries.
This precompiled list is updated to be up-to-date with every release of Odigos. But, this means that you may encounter errors instrumenting applications
that use very newly released versions of dependencies. If this occurs, it will be resolved by updating to the next release of Odigos, or alternatively
upgrading the locally-stored offsets with the odigos pro update-offsets
command.
odigos pro update-offsets
).odigos config set go-auto-offsets-cron
option to
any valid cron schedule. For example, enable nightly updates at midnight with odigos config set go-auto-offsets-cron "0 0 * * *"
.
To disable automatic updates, set the cron value to an empty string with odigos config set go-auto-offsets-cron ""
.
odigos config set go-auto-offsets-mode "image"
. Then use the go-auto-offsets-cron
option described above to set the schedule.
To disable mirrored image updates, run odigos config set go-auto-offsets-mode "direct"
(to switch back to direct mode), or set the go-auto-offsets-cron
setting to an empty string (""
) as described above to disable automatic updates entirely.