Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

4.6 KB
Raw Blame
{
  "version": 3,
  "definition": {
    "name": "gen_ai.tool",
    "condition": {
      "attributes": [
        {
          "value": "tool.name"
        },
        {
          "value": "ai.toolCall."
        },
        {
          "value": "tool_call_args"
        },
        {
          "value": "tool_response"
        },
        {
          "value": "tool_use_id"
        }
      ],
      "resource": []
    },
    "enabled": true,
    "mappers": [
      {
        "name": "gen_ai.tool.name",
        "fieldContext": "attribute",
        "config": {
          "sources": [
            {
              "key": "gen_ai.client.tool_name",
              "context": "attribute",
              "operation": "copy",
              "priority": 40
            },
            {
              "key": "tool_name",
              "context": "attribute",
              "operation": "copy",
              "priority": 30
            },
            {
              "key": "tool.name",
              "context": "attribute",
              "operation": "copy",
              "priority": 20
            },
            {
              "key": "ai.toolCall.name",
              "context": "attribute",
              "operation": "copy",
              "priority": 10
            }
          ]
        }
      },
      {
        "name": "gen_ai.tool.call.id",
        "fieldContext": "attribute",
        "config": {
          "sources": [
            {
              "key": "gen_ai.client.tool_use_id",
              "context": "attribute",
              "operation": "copy",
              "priority": 30
            },
            {
              "key": "tool.id",
              "context": "attribute",
              "operation": "copy",
              "priority": 20
            },
            {
              "key": "ai.toolCall.id",
              "context": "attribute",
              "operation": "copy",
              "priority": 10
            }
          ]
        }
      },
      {
        "name": "gen_ai.tool.description",
        "fieldContext": "attribute",
        "config": {
          "sources": [
            {
              "key": "tool.description",
              "context": "attribute",
              "operation": "copy",
              "priority": 10
            }
          ]
        }
      },
      {
        "name": "gen_ai.tool.call.arguments",
        "fieldContext": "attribute",
        "config": {
          "sources": [
            {
              "key": "ai.toolCall.args",
              "context": "attribute",
              "operation": "copy",
              "priority": 40
            },
            {
              "key": "traceloop.entity.input",
              "context": "attribute",
              "operation": "copy",
              "priority": 30
            },
            {
              "key": "gcp.vertex.agent.tool_call_args",
              "context": "attribute",
              "operation": "copy",
              "priority": 20
            },
            {
              "key": "input.value",
              "context": "attribute",
              "operation": "copy",
              "priority": 10
            }
          ]
        }
      },
      {
        "name": "gen_ai.tool.call.result",
        "fieldContext": "attribute",
        "config": {
          "sources": [
            {
              "key": "ai.toolCall.result",
              "context": "attribute",
              "operation": "copy",
              "priority": 40
            },
            {
              "key": "traceloop.entity.output",
              "context": "attribute",
              "operation": "copy",
              "priority": 30
            },
            {
              "key": "gcp.vertex.agent.tool_response",
              "context": "attribute",
              "operation": "copy",
              "priority": 20
            },
            {
              "key": "output.value",
              "context": "attribute",
              "operation": "copy",
              "priority": 10
            }
          ]
        }
      },
      {
        "name": "gen_ai.operation.name",
        "fieldContext": "attribute",
        "config": {
          "sources": [
            {
              "key": "openinference.span.kind",
              "context": "attribute",
              "operation": "copy",
              "priority": 30
            },
            {
              "key": "llm.request.type",
              "context": "attribute",
              "operation": "copy",
              "priority": 20
            },
            {
              "key": "traceloop.span.kind",
              "context": "attribute",
              "operation": "copy",
              "priority": 10
            }
          ]
        }
      }
    ]
  }
}