GithubHelp home page GithubHelp logo

dystudio / brave-instrumentation-mybatis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jokerlee-9527/brave-instrumentation-mybatis

0.0 1.0 0.0 18 KB

A MyBatis statement interceptor that will report to Zipkin

License: Apache License 2.0

Java 100.00%

brave-instrumentation-mybatis's Introduction

Brave-Instrumentation-Mybatis

中文说明

这包括一个MyBatis语句拦截器,该拦截器将向Zipkin报告

每个语句需要多长时间,以及相关标签(例如查询)。

要使用它,请将以下代码添加到pom.xml。

<dependency>
 <groupId>com.github.JokerLee-9527</groupId>
 <artifactId>brave-instrumentation-mybatis</artifactId>
 <version>1.0.0</version>
</dependency>

随便说说:

项目中使用要使用zipkin跟踪oracle的项目,因为不能想mysql一样在sql连接串中添加statementInterceptors=brave.mysql.TracingStatementInterceptor&zipkinServiceName=myDatabaseService。

当时项目用的是mybati,想到写一个mybatis的拦截插件。

English

This includes a MyBatis statement interceptor that will report to Zipkin how long each statement takes, along with relevant tags like the query.

To use it, Add the following code to pom.xml.

<dependency>
  <groupId>com.github.JokerLee-9527</groupId>
  <artifactId>brave-instrumentation-mybatis</artifactId>
  <version>1.0.0</version>
</dependency>

Just checking

The project uses zipkin to track the oracle project, because you cannot add statementInterceptors = brave.mysql.TracingStatementInterceptor & zipkinServiceName = myDatabaseService in the sql connection string like mysql.

At the time the project was using mybati, and I thought of writing a interception plugin for mybatis.

brave-instrumentation-mybatis's People

Contributors

jokerlee-9527 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.