All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.trino.metastore.tracing.MetastoreAttributes Maven / Gradle / Ivy

/*
 * Licensed 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 io.trino.metastore.tracing;

import io.opentelemetry.api.common.AttributeKey;

import static io.opentelemetry.api.common.AttributeKey.longKey;
import static io.opentelemetry.api.common.AttributeKey.stringKey;

final class MetastoreAttributes
{
    private MetastoreAttributes() {}

    public static final AttributeKey SCHEMA = stringKey("trino.schema");
    public static final AttributeKey SCHEMA_RESPONSE_COUNT = longKey("trino.metastore.response.schema_count");
    public static final AttributeKey TABLE = stringKey("trino.table");
    public static final AttributeKey TABLE_RESPONSE_COUNT = longKey("trino.metastore.response.table_count");
    public static final AttributeKey PARTITION = stringKey("trino.partition");
    public static final AttributeKey FUNCTION = stringKey("trino.function");
    public static final AttributeKey FUNCTION_RESPONSE_COUNT = longKey("trino.metastore.response.function_count");
    public static final AttributeKey ACID_TRANSACTION = longKey("trino.metastore.acid_transaction");
    public static final AttributeKey PARTITION_REQUEST_COUNT = longKey("trino.metastore.request.partition_count");
    public static final AttributeKey PARTITION_RESPONSE_COUNT = longKey("trino.metastore.response.partition_count");
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy