You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/11/03 14:35:00 UTC
[GitHub] [skywalking] ascrutae commented on a change in pull request #5550: add support for dbcp 2.x plugin
ascrutae commented on a change in pull request #5550:
URL: https://github.com/apache/skywalking/pull/5550#discussion_r516711770
##########
File path: test/plugin/scenarios/dbcp-2.x-scenario/config/expectedData.yaml
##########
@@ -0,0 +1,240 @@
+# 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.
+segmentItems:
+- serviceName: dbcp-2.x-scenario
+ segmentSize: nq 0
+ segments:
+ - segmentId: not null
+ spans:
+ - operationName: Mysql/JDBI/Connection/close
+ operationId: eq 0
+ parentSpanId: 1
+ spanId: 2
+ componentId: 33
+ isError: false
+ spanType: Exit
+ peer: mysql-server:3306
+ skipAnalysis: false
+ tags:
+ - {key: db.type, value: sql}
+ - {key: db.instance, value: test}
+ - {key: db.statement, value: ''}
+ - operationName: DBCP/Connection/getConnection
+ operationId: 0
+ parentSpanId: 0
+ spanId: 1
+ startTime: gt 0
+ endTime: gt 0
+ componentId: 102
+ isError: false
+ spanType: Local
+ peer: ''
+ skipAnalysis: false
+ - operationName: Mysql/JDBI/Statement/execute
+ operationId: 0
+ parentSpanId: 0
+ spanId: 3
+ startTime: gt 0
+ endTime: gt 0
+ componentId: 33
+ isError: false
+ spanType: Exit
+ peer: mysql-server:3306
+ skipAnalysis: false
+ tags:
+ - {key: db.type, value: sql}
+ - {key: db.instance, value: test}
+ - key: db.statement
+ value: "CREATE TABLE test_DBCP(\nid VARCHAR(1) PRIMARY KEY, \nvalue VARCHAR(1)\
+ \ NOT NULL)"
+ - operationName: DBCP/Connection/close
Review comment:
I checked the API and found that DBCP doesn't have attribute `name` to set pool name.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org