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

io.trino.tracing.TrinoAttributes Maven / Gradle / Ivy

There is a newer version: 465
Show newest version
/*
 * 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.tracing;

import io.opentelemetry.api.common.AttributeKey;

import java.util.List;

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

public final class TrinoAttributes
{
    private TrinoAttributes() {}

    public static final AttributeKey QUERY_ID = stringKey("trino.query_id");
    public static final AttributeKey STAGE_ID = stringKey("trino.stage_id");
    public static final AttributeKey TASK_ID = stringKey("trino.task_id");
    public static final AttributeKey PIPELINE_ID = stringKey("trino.pipeline_id");
    public static final AttributeKey SPLIT_ID = stringKey("trino.split_id");

    public static final AttributeKey QUERY_TYPE = stringKey("trino.query_type");

    public static final AttributeKey ERROR_CODE = longKey("trino.error_code");
    public static final AttributeKey ERROR_NAME = stringKey("trino.error_name");
    public static final AttributeKey ERROR_TYPE = stringKey("trino.error_type");

    public static final AttributeKey CATALOG = stringKey("trino.catalog");
    public static final AttributeKey SCHEMA = stringKey("trino.schema");
    public static final AttributeKey TABLE = stringKey("trino.table");
    public static final AttributeKey PROCEDURE = stringKey("trino.procedure");
    public static final AttributeKey FUNCTION = stringKey("trino.function");
    public static final AttributeKey HANDLE = stringKey("trino.handle");
    public static final AttributeKey CASCADE = booleanKey("trino.cascade");

    public static final AttributeKey OPTIMIZER_NAME = stringKey("trino.optimizer");
    public static final AttributeKey> OPTIMIZER_RULES = stringArrayKey("trino.optimizer.rules");

    public static final AttributeKey SPLIT_BATCH_MAX_SIZE = longKey("trino.split_batch.max_size");
    public static final AttributeKey SPLIT_BATCH_RESULT_SIZE = longKey("trino.split_batch.result_size");

    public static final AttributeKey SPLIT_SCHEDULED_TIME_NANOS = longKey("trino.split.scheduled_time_nanos");
    public static final AttributeKey SPLIT_CPU_TIME_NANOS = longKey("trino.split.cpu_time_nanos");
    public static final AttributeKey SPLIT_WAIT_TIME_NANOS = longKey("trino.split.wait_time_nanos");
    public static final AttributeKey SPLIT_START_TIME_NANOS = longKey("trino.split.start_time_nanos");
    public static final AttributeKey SPLIT_BLOCK_TIME_NANOS = longKey("trino.split.block_time_nanos");
    public static final AttributeKey SPLIT_BLOCKED = booleanKey("trino.split.blocked");

    public static final AttributeKey EVENT_STATE = stringKey("state");
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy