contrib/opensearch-project/opensearch-go.v4
Those integration are enabled by having the
following import in the project’s orchestrion.tool.go file:
import (
_ "github.com/DataDog/orchestrion"
_ "github.com/DataDog/dd-trace-go/contrib/opensearch-project/opensearch-go.v4/v2" // integration
//...
)Go Client for OpenSearch v4.
NewClient
Call to
opensearch.NewClientReplace the expression using the template:
// Using the following synthetic imports:
import (
opensearchtrace "github.com/DataDog/dd-trace-go/contrib/opensearch-project/opensearch-go.v4/v2"
)opensearchtrace.NewClient({{ index .AST.Args 0 }})