Skip to content

Commit

Permalink
chore(mysql): set supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Nov 18, 2019
1 parent 52558cc commit 033481b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/opentelemetry-plugin-mysql/src/mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 033481b

Please sign in to comment.