META-INF.conf.opentelemetry-advisors.yaml Maven / Gradle / Ivy
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
advisors:
- target: org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask
advice: org.apache.shardingsphere.agent.plugin.tracing.opentelemetry.advice.OpenTelemetryRootSpanAdvice
pointcuts:
- name: run
type: method
- target: org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSphereStatement
advice: org.apache.shardingsphere.agent.plugin.tracing.opentelemetry.advice.OpenTelemetryRootSpanAdvice
pointcuts:
- name: executeQuery
type: method
- name: execute
type: method
- name: executeUpdate
type: method
params:
- index: 0
type: java.lang.String
- target: org.apache.shardingsphere.driver.jdbc.core.statement.ShardingSpherePreparedStatement
advice: org.apache.shardingsphere.agent.plugin.tracing.opentelemetry.advice.OpenTelemetryRootSpanAdvice
pointcuts:
- name: executeQuery
type: method
- name: execute
type: method
- name: executeUpdate
type: method
- target: org.apache.shardingsphere.infra.parser.ShardingSphereSQLParserEngine
advice: org.apache.shardingsphere.agent.plugin.tracing.opentelemetry.advice.OpenTelemetrySQLParserEngineAdvice
pointcuts:
- name: parse
type: method
- target: org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback
advice: org.apache.shardingsphere.agent.plugin.tracing.opentelemetry.advice.OpenTelemetryJDBCExecutorCallbackAdvice
pointcuts:
- name: execute
type: method
params:
- index: 0
type: org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit