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 20, 2024
1 parent 8ca6b3c commit de177b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/getting_started/Integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ Now implement the `fhevm.EVMEnvironment` interface for `FhevmImplementation`:
```go
func (evm *EVM) FhevmEnvironment() fhevm.EVMEnvironment { return &evm.fhevmEnvironment }

func (evm *FhevmImplementation) OtelContext() context.Context {
return evm.interpreter.evm.executionContext
}

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 de177b6

Please sign in to comment.