/* * 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. * */ package org.apache.skywalking.apm.agent.core.context.tag; /** * The span tags are supported by sky-walking engine. * As default, all tags will be stored, but these ones have particular meanings. *

* Created by wusheng on 2017/2/17. */ public final class Tags { private Tags() { } /** * URL records the url of the incoming request. */ public static final StringTag URL = new StringTag("url"); /** * STATUS_CODE records the http status code of the response. */ public static final StringTag STATUS_CODE = new StringTag("status_code"); /** * DB_TYPE records database type, such as sql, redis, cassandra and so on. */ public static final StringTag DB_TYPE = new StringTag("db.type"); /** * DB_INSTANCE records database instance name. */ public static final StringTag DB_INSTANCE = new StringTag("db.instance"); /** * DB_STATEMENT records the sql statement of the database access. */ public static final StringTag DB_STATEMENT = new StringTag("db.statement"); /** * DB_BIND_VARIABLES records the bind variables of sql statement. */ public static final StringTag DB_BIND_VARIABLES = new StringTag("db.bind_vars"); /** * MQ_QUEUE records the queue name of message-middleware */ public static final StringTag MQ_QUEUE = new StringTag("mq.queue"); /** * MQ_BROKER records the broker address of message-middleware */ public static final StringTag MQ_BROKER = new StringTag("mq.broker"); /** * MQ_TOPIC records the topic name of message-middleware */ public static final StringTag MQ_TOPIC = new StringTag("mq.topic"); public static final class HTTP { public static final StringTag METHOD = new StringTag("http.method"); } }