Skip to content

Commit

Permalink
Merge pull request #1292 from jsonwan/github_perf/apm
Browse files Browse the repository at this point in the history
perf: 接入蓝鲸监控APM调用链追踪 #1161
  • Loading branch information
wangyu096 authored Sep 19, 2022
2 parents 6d596e7 + f683f66 commit 475018f
Show file tree
Hide file tree
Showing 19 changed files with 69 additions and 37 deletions.
4 changes: 4 additions & 0 deletions src/backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ ext {
set('jodaTimeVersion', "2.10.5")
set('bcprovVersion', "1.64")
set('reflectionsVersion', "0.9.12")
set('cronUtilsVersion', "9.1.6")
set('otelJdbcVersion', "1.9.2-alpha")
if (System.getProperty("bkjobVersion")) {
set('bkjobVersion', System.getProperty("bkjobVersion"))
println "bkjobVersoin:" + bkjobVersion
Expand Down Expand Up @@ -245,6 +247,8 @@ subprojects {
dependency "org.bouncycastle:bcprov-jdk15on:$bcprovVersion"
// https://github.com/ronmamo/reflections
dependency "org.reflections:reflections:$reflectionsVersion"
dependency "com.cronutils:cron-utils:$cronUtilsVersion"
dependency "io.opentelemetry.instrumentation:opentelemetry-jdbc:$otelJdbcVersion"
dependencySet(group: "org.jooq", version: "$jooqVersion") {
entry "jooq"
entry "jooq-codegen"
Expand Down
1 change: 1 addition & 0 deletions src/backend/commons/common-otel/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dependencies {
api "org.springframework.cloud:spring-cloud-sleuth-api"
api "org.springframework.cloud:spring-cloud-sleuth-otel"
api "org.springframework.cloud:spring-cloud-sleuth-otel-autoconfigure"
api "io.opentelemetry.instrumentation:opentelemetry-jdbc"
api "io.opentelemetry:opentelemetry-exporter-otlp-trace"
// https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-sdk-extension-resources
api 'io.opentelemetry:opentelemetry-sdk-extension-resources'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@

package com.tencent.bk.job.common.tracing;

import io.opentelemetry.api.GlobalOpenTelemetry;
import io.opentelemetry.api.OpenTelemetry;
import io.opentelemetry.api.common.Attributes;
import io.opentelemetry.api.common.AttributesBuilder;
import io.opentelemetry.context.propagation.ContextPropagators;
import io.opentelemetry.sdk.OpenTelemetrySdk;
import io.opentelemetry.sdk.resources.Resource;
import io.opentelemetry.sdk.trace.SdkTracerProvider;
import io.opentelemetry.sdk.trace.SdkTracerProviderBuilder;
Expand Down Expand Up @@ -88,4 +92,13 @@ SdkTracerProvider otelTracerProvider(SpanLimits spanLimits,
processors.forEach(sdkTracerProviderBuilder::addSpanProcessor);
return sdkTracerProviderBuilder.build();
}

@Bean
OpenTelemetry otel(SdkTracerProvider tracerProvider, ContextPropagators contextPropagators) {
OpenTelemetry openTelemetry =
OpenTelemetrySdk.builder().setTracerProvider(tracerProvider).setPropagators(contextPropagators).build();
GlobalOpenTelemetry.set(openTelemetry);
log.info("GlobalOpenTelemetry has been set");
return openTelemetry;
}
}
2 changes: 1 addition & 1 deletion src/backend/commons/common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies {
implementation 'org.hibernate.validator:hibernate-validator'
implementation 'jakarta.validation:jakarta.validation-api'
implementation 'io.micrometer:micrometer-registry-prometheus'
implementation 'com.cronutils:cron-utils:9.1.6'
implementation 'com.cronutils:cron-utils'
compileOnly 'org.springframework:spring-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ org.quartz.jobStore.dataSource=myDS
#==============================================================
#Configure DataSource
#==============================================================
org.quartz.dataSource.myDS.driver=com.mysql.cj.jdbc.Driver
org.quartz.dataSource.myDS.driver=io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver
org.quartz.dataSource.myDS.URL=${job.crontab.db.url}
org.quartz.dataSource.myDS.user=${job.crontab.db.user}
org.quartz.dataSource.myDS.password=${job.crontab.db.password}
Expand Down
2 changes: 1 addition & 1 deletion src/backend/job-crontab/service-job-crontab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ dependencies {
implementation "ch.qos.logback:logback-core"
implementation "ch.qos.logback:logback-classic"
implementation "org.slf4j:slf4j-api"
implementation("com.cronutils:cron-utils:9.1.6")
implementation("com.cronutils:cron-utils")
}
14 changes: 14 additions & 0 deletions support-files/kubernetes/charts/bk-job/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,20 @@ Return the MariaDB secret name
{{- end -}}
{{- end -}}

{{/*
Return the JDBC MySQL Driver Class
*/}}
{{- define "job.jdbcMysqlDriverClass" -}}
{{- printf "io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver" -}}
{{- end -}}

{{/*
Return the JDBC MySQL scheme
*/}}
{{- define "job.jdbcMysqlScheme" -}}
{{- printf "jdbc:otel:mysql" -}}
{{- end -}}


{{/*
Fully qualified app name for Redis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ data:
spring:
datasource:
job-analysis:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: {{ include "job.jdbcMysqlDriverClass" . }}
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_analysis?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: {{ include "job.jdbcMysqlScheme" . }}://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_analysis?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: {{ include "job.mariadb.username" . }}
{{ if .Values.externalMariaDB.existingPasswordSecret }}
password: {{ .Values.externalMariaDB.existingPasswordKey | default "mariadb-password" | printf "${%s}" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ data:
spring:
datasource:
job-backup:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: {{ include "job.jdbcMysqlDriverClass" . }}
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_backup?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: {{ include "job.jdbcMysqlScheme" . }}://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_backup?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: {{ include "job.mariadb.username" . }}
{{ if .Values.externalMariaDB.existingPasswordSecret }}
password: {{ .Values.externalMariaDB.existingPasswordKey | default "mariadb-password" | printf "${%s}" }}
Expand All @@ -30,9 +30,9 @@ data:
poolName: "job-backup"
validationTimeout: 5000
job-execute-db:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: {{ include "job.jdbcMysqlDriverClass" . }}
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: {{ include "job.jdbcMysqlScheme" . }}://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: {{ include "job.mariadb.username" . }}
{{ if .Values.externalMariaDB.existingPasswordSecret }}
password: {{ .Values.externalMariaDB.existingPasswordKey | default "mariadb-password" | printf "${%s}" }}
Expand All @@ -45,9 +45,9 @@ data:
poolName: "job-execute-db"
validationTimeout: 5000
job-execute-archive:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: {{ include "job.jdbcMysqlDriverClass" . }}
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: {{ include "job.jdbcMysqlScheme" . }}://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: {{ include "job.mariadb.username" . }}
{{ if .Values.externalMariaDB.existingPasswordSecret }}
password: {{ .Values.externalMariaDB.existingPasswordKey | default "mariadb-password" | printf "${%s}" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ data:
spring:
datasource:
job-crontab:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: {{ include "job.jdbcMysqlDriverClass" . }}
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_crontab?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: {{ include "job.jdbcMysqlScheme" . }}://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_crontab?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: {{ include "job.mariadb.username" . }}
{{ if .Values.externalMariaDB.existingPasswordSecret }}
password: {{ .Values.externalMariaDB.existingPasswordKey | default "mariadb-password" | printf "${%s}" }}
Expand Down Expand Up @@ -84,7 +84,7 @@ data:
job:
crontab:
db:
url: jdbc:mysql://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_crontab?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
url: {{ include "job.jdbcMysqlScheme" . }}://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_crontab?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: {{ include "job.mariadb.username" . }}
{{ if .Values.externalMariaDB.existingPasswordSecret }}
password: {{ .Values.externalMariaDB.existingPasswordKey | default "mariadb-password" | printf "${%s}" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ data:
maxConcurrency: 10
datasource:
job-execute:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: {{ include "job.jdbcMysqlDriverClass" . }}
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: {{ include "job.jdbcMysqlScheme" . }}://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: {{ include "job.mariadb.username" . }}
{{ if .Values.externalMariaDB.existingPasswordSecret }}
password: {{ .Values.externalMariaDB.existingPasswordKey | default "mariadb-password" | printf "${%s}" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ data:
spring:
datasource:
job-file-gateway:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: {{ include "job.jdbcMysqlDriverClass" . }}
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_file_gateway?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: {{ include "job.jdbcMysqlScheme" . }}://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_file_gateway?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: {{ include "job.mariadb.username" . }}
{{ if .Values.externalMariaDB.existingPasswordSecret }}
password: {{ .Values.externalMariaDB.existingPasswordKey | default "mariadb-password" | printf "${%s}" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ data:
spring:
datasource:
job-manage:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: {{ include "job.jdbcMysqlDriverClass" . }}
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_manage?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: {{ include "job.jdbcMysqlScheme" . }}://{{- include "job.mariadb.host" . }}:{{- include "job.mariadb.port" . }}/job_manage?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: {{ include "job.mariadb.username" . }}
{{ if .Values.externalMariaDB.existingPasswordSecret }}
password: {{ .Values.externalMariaDB.existingPasswordKey | default "mariadb-password" | printf "${%s}" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ spring:
name: job-analysis
datasource:
job-analysis:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://__BK_JOB_ANALYSIS_MYSQL_HOST__:__BK_JOB_ANALYSIS_MYSQL_PORT__/job_analysis?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: jdbc:otel:mysql://__BK_JOB_ANALYSIS_MYSQL_HOST__:__BK_JOB_ANALYSIS_MYSQL_PORT__/job_analysis?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: __BK_JOB_ANALYSIS_MYSQL_USERNAME__
password: __BK_JOB_ANALYSIS_MYSQL_PASSWORD__
maximum-pool-size: 100
Expand Down
12 changes: 6 additions & 6 deletions support-files/templates/#etc#job#job-backup#job-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ spring:
name: job-backup
datasource:
job-backup:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://__BK_JOB_BACKUP_MYSQL_HOST__:__BK_JOB_BACKUP_MYSQL_PORT__/job_backup?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: jdbc:otel:mysql://__BK_JOB_BACKUP_MYSQL_HOST__:__BK_JOB_BACKUP_MYSQL_PORT__/job_backup?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: __BK_JOB_BACKUP_MYSQL_USERNAME__
password: __BK_JOB_BACKUP_MYSQL_PASSWORD__
maximum-pool-size: 20
Expand All @@ -14,9 +14,9 @@ spring:
poolName: "job-backup"
validationTimeout: 5000
job-execute-db:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://__BK_JOB_EXECUTE_MYSQL_HOST__:__BK_JOB_EXECUTE_MYSQL_PORT__/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
jdbc-url: jdbc:otel:mysql://__BK_JOB_EXECUTE_MYSQL_HOST__:__BK_JOB_EXECUTE_MYSQL_PORT__/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
username: __BK_JOB_EXECUTE_MYSQL_USERNAME__
password: __BK_JOB_EXECUTE_MYSQL_PASSWORD__
maximum-pool-size: 10
Expand All @@ -26,9 +26,9 @@ spring:
validationTimeout: 5000
# 执行数据归档DB配置,若需开启数据归档请去除注释并添加相应环境变量进行配置
#job-execute-archive:
#driver-class-name: com.mysql.cj.jdbc.Driver
#driver-class-name: io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver
#type: com.zaxxer.hikari.HikariDataSource
#jdbc-url: jdbc:mysql://__BK_JOB_EXECUTE_ARCHIVE_MYSQL_HOST__:__BK_JOB_EXECUTE_ARCHIVE_MYSQL_PORT__/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
#jdbc-url: jdbc:otel:mysql://__BK_JOB_EXECUTE_ARCHIVE_MYSQL_HOST__:__BK_JOB_EXECUTE_ARCHIVE_MYSQL_PORT__/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
#username: __BK_JOB_EXECUTE_ARCHIVE_MYSQL_USERNAME__
#password: __BK_JOB_EXECUTE_ARCHIVE_MYSQL_PASSWORD__
#maximum-pool-size: 10
Expand Down
6 changes: 3 additions & 3 deletions support-files/templates/#etc#job#job-crontab#job-crontab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ spring:
name: job-crontab
datasource:
job-crontab:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://__BK_JOB_CRONTAB_MYSQL_HOST__:__BK_JOB_CRONTAB_MYSQL_PORT__/job_crontab?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: jdbc:otel:mysql://__BK_JOB_CRONTAB_MYSQL_HOST__:__BK_JOB_CRONTAB_MYSQL_PORT__/job_crontab?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: __BK_JOB_CRONTAB_MYSQL_USERNAME__
password: __BK_JOB_CRONTAB_MYSQL_PASSWORD__
maximum-pool-size: 20
Expand Down Expand Up @@ -86,7 +86,7 @@ ribbon:
job:
crontab:
db:
url: jdbc:mysql://__BK_JOB_CRONTAB_MYSQL_HOST__:__BK_JOB_CRONTAB_MYSQL_PORT__/job_crontab?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
url: jdbc:otel:mysql://__BK_JOB_CRONTAB_MYSQL_HOST__:__BK_JOB_CRONTAB_MYSQL_PORT__/job_crontab?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: __BK_JOB_CRONTAB_MYSQL_USERNAME__
password: __BK_JOB_CRONTAB_MYSQL_PASSWORD__

Expand Down
4 changes: 2 additions & 2 deletions support-files/templates/#etc#job#job-execute#job-execute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ spring:
maxConcurrency: 10
datasource:
job-execute:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://__BK_JOB_EXECUTE_MYSQL_HOST__:__BK_JOB_EXECUTE_MYSQL_PORT__/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: jdbc:otel:mysql://__BK_JOB_EXECUTE_MYSQL_HOST__:__BK_JOB_EXECUTE_MYSQL_PORT__/job_execute?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: __BK_JOB_EXECUTE_MYSQL_USERNAME__
password: __BK_JOB_EXECUTE_MYSQL_PASSWORD__
maximum-pool-size: 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ spring:
name: job-file-gateway
datasource:
job-file-gateway:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://__BK_JOB_FILE_GATEWAY_MYSQL_HOST__:__BK_JOB_FILE_GATEWAY_MYSQL_PORT__/job_file_gateway?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: jdbc:otel:mysql://__BK_JOB_FILE_GATEWAY_MYSQL_HOST__:__BK_JOB_FILE_GATEWAY_MYSQL_PORT__/job_file_gateway?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: __BK_JOB_FILE_GATEWAY_MYSQL_USERNAME__
password: __BK_JOB_FILE_GATEWAY_MYSQL_PASSWORD__
maximum-pool-size: 20
Expand Down
4 changes: 2 additions & 2 deletions support-files/templates/#etc#job#job-manage#job-manage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ spring:
name: job-manage
datasource:
job-manage:
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: io.opentelemetry.instrumentation.jdbc.OpenTelemetryDriver
type: com.zaxxer.hikari.HikariDataSource
jdbc-url: jdbc:mysql://__BK_JOB_MANAGE_MYSQL_HOST__:__BK_JOB_MANAGE_MYSQL_PORT__/job_manage?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
jdbc-url: jdbc:otel:mysql://__BK_JOB_MANAGE_MYSQL_HOST__:__BK_JOB_MANAGE_MYSQL_PORT__/job_manage?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: __BK_JOB_MANAGE_MYSQL_USERNAME__
password: __BK_JOB_MANAGE_MYSQL_PASSWORD__
maximum-pool-size: 100
Expand Down

0 comments on commit 475018f

Please sign in to comment.