Callback - APMPlus

Eino provides APMPlus tracing and metrics wrappers based on graph callbacks. See APMPlus docs and console. Example:

package main

import (
    "context"
    "log"

    "github.com/cloudwego/eino-ext/callbacks/apmplus"
    "github.com/cloudwego/eino/callbacks"
)

func main() {
    ctx := context.Background()
    // create apmplus handler
    cbh, showdown, err := apmplus.NewApmplusHandler(&apmplus.Config{
       Host:        "apmplus-cn-beijing.volces.com:4317",
       AppKey:      "xxx",
       ServiceName: "eino-app",
       Release:     "release/v0.0.1",
    })
    if err != nil {
       log.Fatal(err)
    }

    // set apmplus as global callback
    callbacks.AppendGlobalHandlers(cbh)

    g := NewGraph[string,string]()
    /*
     * compose and run graph
     */

    // wait until all traces and metrics are flushed before exit
    showdown(ctx)
}

You can view traces and metrics in APMPlus:


Last modified December 12, 2025 : chore: update websocket docs (#1479) (967538e)