Skip to content

Commit

Permalink
docs: update integration steps with Otel context
Browse files Browse the repository at this point in the history
  • Loading branch information
youben11 authored Feb 21, 2024
1 parent 8ca6b3c commit 965afb6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/getting_started/Integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 965afb6

Please sign in to comment.