Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mysql support #525

Merged
merged 42 commits into from
Nov 27, 2019
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
92f8dc0
chore: set up mysql plugin
dyladan Nov 11, 2019
f99e174
feat: wip mysql plugin
dyladan Nov 13, 2019
b4486a3
Merge remote-tracking branch 'upstream/master' into mysql
dyladan Nov 14, 2019
23fb141
fix: lint
dyladan Nov 14, 2019
14387c5
feat(mysql-plugin): trace cluster pool queries
dyladan Nov 15, 2019
d7ea550
Merge branch 'master' into mysql
dyladan Nov 15, 2019
2ec1a12
chore: update attributes to match spec names
dyladan Nov 18, 2019
8220f45
feat(mysql): add query overloads
dyladan Nov 18, 2019
55275c2
test(mysql): add tests
dyladan Nov 18, 2019
f598eac
test(mysql): run tests in ci
dyladan Nov 18, 2019
43f1556
test(mysql): use environment for test params
dyladan Nov 18, 2019
52558cc
test(mysql): fix environment
dyladan Nov 18, 2019
033481b
chore(mysql): set supported versions
dyladan Nov 18, 2019
3e0498e
test(mysql): fix version number
dyladan Nov 18, 2019
76b8a97
ci: fix build and add mysql to cache
dyladan Nov 18, 2019
b15f027
chore: pin @types/node to fix compile error
dyladan Nov 18, 2019
ba93c97
ci: add mysql port to env
dyladan Nov 18, 2019
0c31b1e
test(mysql): increase coverage
dyladan Nov 18, 2019
910b8c3
chore: add mysql to supported plugins list
dyladan Nov 18, 2019
f561bf9
test: fix typo
dyladan Nov 19, 2019
7141ff4
fix: reference to this module
dyladan Nov 19, 2019
49c6faf
fix: lint
dyladan Nov 19, 2019
2aaddb2
test: add pool.getConnection tests
dyladan Nov 19, 2019
3d18030
Update examples/mysql/package.json
dyladan Nov 20, 2019
bbf3d50
docs: update mysql example
dyladan Nov 20, 2019
e230868
chore: add redis to default plugins list
dyladan Nov 20, 2019
6613e14
Merge remote-tracking branch 'upstream/master' into mysql
dyladan Nov 20, 2019
5a8cc39
Merge branch 'mysql' of github.com:dynatrace-oss-contrib/opentelemetr…
dyladan Nov 20, 2019
e67e995
chore: remove wip mysql plugin from defaults
dyladan Nov 20, 2019
38e9801
chore: add codecov script
dyladan Nov 20, 2019
81b2197
chore(mysql): add supported version to readme
dyladan Nov 20, 2019
97a3bff
fix: lint
dyladan Nov 20, 2019
031e60b
chore: remove ts-ignore, set status ok
dyladan Nov 23, 2019
5089692
chore: unwrap connections on next call after unwrap
dyladan Nov 23, 2019
60d0757
chore: updates from review comments
dyladan Nov 23, 2019
54cf5c6
ci: order envs
dyladan Nov 25, 2019
84b8cd6
Merge remote-tracking branch 'upstream/master' into mysql
dyladan Nov 25, 2019
73146e2
Merge branch 'master' into mysql
mayurkale22 Nov 25, 2019
bb74a65
Merge remote-tracking branch 'upstream/master' into mysql
dyladan Nov 27, 2019
d0cf0d2
chore: add mysql to default plugins
dyladan Nov 27, 2019
409f9d0
chore: update README plugin list
dyladan Nov 27, 2019
8100d9e
Merge branch 'master' into mysql
mayurkale22 Nov 27, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore(mysql): set supported versions
dyladan committed Nov 18, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 033481bc719a0b9128ca07eabb0cde62b2844370
10 changes: 6 additions & 4 deletions packages/opentelemetry-plugin-mysql/src/mysql.ts
Original file line number Diff line number Diff line change
@@ -22,11 +22,13 @@ import { AttributeNames } from './enums';
import { getConnectionAttributes, getSpanName } from './utils';

export class MysqlPlugin extends BasePlugin<typeof mysqlTypes> {
moduleName = 'mysql';
static COMPONENT = 'mysql';
static DB_TYPE = 'sql';
readonly moduleName = 'mysql';
readonly supportedVersions = ['2.*'];

static COMMON_ATTRIBUTES = {
static readonly COMPONENT = 'mysql';
static readonly DB_TYPE = 'sql';

static readonly COMMON_ATTRIBUTES = {
[AttributeNames.COMPONENT]: MysqlPlugin.COMPONENT,
[AttributeNames.DB_TYPE]: MysqlPlugin.DB_TYPE,
[AttributeNames.PEER_SERVICE]: MysqlPlugin.COMPONENT,