From 965afb6e9830ac396177379f5960d10378e412c4 Mon Sep 17 00:00:00 2001 From: Ayoub Benaissa Date: Wed, 21 Feb 2024 08:51:53 +0100 Subject: [PATCH] docs: update integration steps with Otel context --- docs/getting_started/Integration.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/getting_started/Integration.md b/docs/getting_started/Integration.md index 5e55d8c..2a66c7e 100644 --- a/docs/getting_started/Integration.md +++ b/docs/getting_started/Integration.md @@ -156,6 +156,12 @@ Now implement the `fhevm.EVMEnvironment` interface for `FhevmImplementation`: ```go func (evm *EVM) FhevmEnvironment() fhevm.EVMEnvironment { return &evm.fhevmEnvironment } +// If you are using OpenTelemetry, you can return a context that the precompiled fhelib will use +// to trace its internal functions. Otherwise, just return nil +func (evm *FhevmImplementation) OtelContext() context.Context { + return nil +} + func (evm *FhevmImplementation) GetState(addr common.Address, hash common.Hash) common.Hash { return evm.interpreter.evm.StateDB.GetState(addr, hash) }