chore: 添加虚拟环境到仓库
- 添加 backend_service/venv 虚拟环境 - 包含所有Python依赖包 - 注意:虚拟环境约393MB,包含12655个文件
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,37 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: opentelemetry/proto/common/v1/common.proto
|
||||
# Protobuf Python Version: 5.26.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*opentelemetry/proto/common/v1/common.proto\x12\x1dopentelemetry.proto.common.v1\"\x8c\x02\n\x08\x41nyValue\x12\x16\n\x0cstring_value\x18\x01 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x02 \x01(\x08H\x00\x12\x13\n\tint_value\x18\x03 \x01(\x03H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12@\n\x0b\x61rray_value\x18\x05 \x01(\x0b\x32).opentelemetry.proto.common.v1.ArrayValueH\x00\x12\x43\n\x0ckvlist_value\x18\x06 \x01(\x0b\x32+.opentelemetry.proto.common.v1.KeyValueListH\x00\x12\x15\n\x0b\x62ytes_value\x18\x07 \x01(\x0cH\x00\x42\x07\n\x05value\"E\n\nArrayValue\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\"G\n\x0cKeyValueList\x12\x37\n\x06values\x18\x01 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\"O\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.opentelemetry.proto.common.v1.AnyValue\"\x94\x01\n\x14InstrumentationScope\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12;\n\nattributes\x18\x03 \x03(\x0b\x32\'.opentelemetry.proto.common.v1.KeyValue\x12 \n\x18\x64ropped_attributes_count\x18\x04 \x01(\r\"X\n\tEntityRef\x12\x12\n\nschema_url\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x07id_keys\x18\x03 \x03(\t\x12\x18\n\x10\x64\x65scription_keys\x18\x04 \x03(\tB{\n io.opentelemetry.proto.common.v1B\x0b\x43ommonProtoP\x01Z(go.opentelemetry.io/proto/otlp/common/v1\xaa\x02\x1dOpenTelemetry.Proto.Common.V1b\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'opentelemetry.proto.common.v1.common_pb2', _globals)
|
||||
if not _descriptor._USE_C_DESCRIPTORS:
|
||||
_globals['DESCRIPTOR']._loaded_options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\n io.opentelemetry.proto.common.v1B\013CommonProtoP\001Z(go.opentelemetry.io/proto/otlp/common/v1\252\002\035OpenTelemetry.Proto.Common.V1'
|
||||
_globals['_ANYVALUE']._serialized_start=78
|
||||
_globals['_ANYVALUE']._serialized_end=346
|
||||
_globals['_ARRAYVALUE']._serialized_start=348
|
||||
_globals['_ARRAYVALUE']._serialized_end=417
|
||||
_globals['_KEYVALUELIST']._serialized_start=419
|
||||
_globals['_KEYVALUELIST']._serialized_end=490
|
||||
_globals['_KEYVALUE']._serialized_start=492
|
||||
_globals['_KEYVALUE']._serialized_end=571
|
||||
_globals['_INSTRUMENTATIONSCOPE']._serialized_start=574
|
||||
_globals['_INSTRUMENTATIONSCOPE']._serialized_end=722
|
||||
_globals['_ENTITYREF']._serialized_start=724
|
||||
_globals['_ENTITYREF']._serialized_end=812
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,235 @@
|
||||
"""
|
||||
@generated by mypy-protobuf. Do not edit manually!
|
||||
isort:skip_file
|
||||
Copyright 2019, OpenTelemetry Authors
|
||||
|
||||
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.
|
||||
"""
|
||||
import builtins
|
||||
import collections.abc
|
||||
import google.protobuf.descriptor
|
||||
import google.protobuf.internal.containers
|
||||
import google.protobuf.message
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
import typing as typing_extensions
|
||||
else:
|
||||
import typing_extensions
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
||||
|
||||
@typing_extensions.final
|
||||
class AnyValue(google.protobuf.message.Message):
|
||||
"""AnyValue is used to represent any type of attribute value. AnyValue may contain a
|
||||
primitive value such as a string or integer or it may contain an arbitrary nested
|
||||
object containing arrays, key-value lists and primitives.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
STRING_VALUE_FIELD_NUMBER: builtins.int
|
||||
BOOL_VALUE_FIELD_NUMBER: builtins.int
|
||||
INT_VALUE_FIELD_NUMBER: builtins.int
|
||||
DOUBLE_VALUE_FIELD_NUMBER: builtins.int
|
||||
ARRAY_VALUE_FIELD_NUMBER: builtins.int
|
||||
KVLIST_VALUE_FIELD_NUMBER: builtins.int
|
||||
BYTES_VALUE_FIELD_NUMBER: builtins.int
|
||||
string_value: builtins.str
|
||||
bool_value: builtins.bool
|
||||
int_value: builtins.int
|
||||
double_value: builtins.float
|
||||
@property
|
||||
def array_value(self) -> global___ArrayValue: ...
|
||||
@property
|
||||
def kvlist_value(self) -> global___KeyValueList: ...
|
||||
bytes_value: builtins.bytes
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
string_value: builtins.str = ...,
|
||||
bool_value: builtins.bool = ...,
|
||||
int_value: builtins.int = ...,
|
||||
double_value: builtins.float = ...,
|
||||
array_value: global___ArrayValue | None = ...,
|
||||
kvlist_value: global___KeyValueList | None = ...,
|
||||
bytes_value: builtins.bytes = ...,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions.Literal["array_value", b"array_value", "bool_value", b"bool_value", "bytes_value", b"bytes_value", "double_value", b"double_value", "int_value", b"int_value", "kvlist_value", b"kvlist_value", "string_value", b"string_value", "value", b"value"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["array_value", b"array_value", "bool_value", b"bool_value", "bytes_value", b"bytes_value", "double_value", b"double_value", "int_value", b"int_value", "kvlist_value", b"kvlist_value", "string_value", b"string_value", "value", b"value"]) -> None: ...
|
||||
def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["string_value", "bool_value", "int_value", "double_value", "array_value", "kvlist_value", "bytes_value"] | None: ...
|
||||
|
||||
global___AnyValue = AnyValue
|
||||
|
||||
@typing_extensions.final
|
||||
class ArrayValue(google.protobuf.message.Message):
|
||||
"""ArrayValue is a list of AnyValue messages. We need ArrayValue as a message
|
||||
since oneof in AnyValue does not allow repeated fields.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUES_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AnyValue]:
|
||||
"""Array of values. The array may be empty (contain 0 elements)."""
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
values: collections.abc.Iterable[global___AnyValue] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ...
|
||||
|
||||
global___ArrayValue = ArrayValue
|
||||
|
||||
@typing_extensions.final
|
||||
class KeyValueList(google.protobuf.message.Message):
|
||||
"""KeyValueList is a list of KeyValue messages. We need KeyValueList as a message
|
||||
since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need
|
||||
a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to
|
||||
avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches
|
||||
are semantically equivalent.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
VALUES_FIELD_NUMBER: builtins.int
|
||||
@property
|
||||
def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___KeyValue]:
|
||||
"""A collection of key/value pairs of key-value pairs. The list may be empty (may
|
||||
contain 0 elements).
|
||||
The keys MUST be unique (it is not allowed to have more than one
|
||||
value with the same key).
|
||||
"""
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
values: collections.abc.Iterable[global___KeyValue] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ...
|
||||
|
||||
global___KeyValueList = KeyValueList
|
||||
|
||||
@typing_extensions.final
|
||||
class KeyValue(google.protobuf.message.Message):
|
||||
"""KeyValue is a key-value pair that is used to store Span attributes, Link
|
||||
attributes, etc.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
KEY_FIELD_NUMBER: builtins.int
|
||||
VALUE_FIELD_NUMBER: builtins.int
|
||||
key: builtins.str
|
||||
@property
|
||||
def value(self) -> global___AnyValue: ...
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
key: builtins.str = ...,
|
||||
value: global___AnyValue | None = ...,
|
||||
) -> None: ...
|
||||
def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
|
||||
|
||||
global___KeyValue = KeyValue
|
||||
|
||||
@typing_extensions.final
|
||||
class InstrumentationScope(google.protobuf.message.Message):
|
||||
"""InstrumentationScope is a message representing the instrumentation scope information
|
||||
such as the fully qualified name and version.
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
NAME_FIELD_NUMBER: builtins.int
|
||||
VERSION_FIELD_NUMBER: builtins.int
|
||||
ATTRIBUTES_FIELD_NUMBER: builtins.int
|
||||
DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER: builtins.int
|
||||
name: builtins.str
|
||||
"""An empty instrumentation scope name means the name is unknown."""
|
||||
version: builtins.str
|
||||
@property
|
||||
def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___KeyValue]:
|
||||
"""Additional attributes that describe the scope. [Optional].
|
||||
Attribute keys MUST be unique (it is not allowed to have more than one
|
||||
attribute with the same key).
|
||||
"""
|
||||
dropped_attributes_count: builtins.int
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
name: builtins.str = ...,
|
||||
version: builtins.str = ...,
|
||||
attributes: collections.abc.Iterable[global___KeyValue] | None = ...,
|
||||
dropped_attributes_count: builtins.int = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["attributes", b"attributes", "dropped_attributes_count", b"dropped_attributes_count", "name", b"name", "version", b"version"]) -> None: ...
|
||||
|
||||
global___InstrumentationScope = InstrumentationScope
|
||||
|
||||
@typing_extensions.final
|
||||
class EntityRef(google.protobuf.message.Message):
|
||||
"""A reference to an Entity.
|
||||
Entity represents an object of interest associated with produced telemetry: e.g spans, metrics, profiles, or logs.
|
||||
|
||||
Status: [Development]
|
||||
"""
|
||||
|
||||
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
||||
|
||||
SCHEMA_URL_FIELD_NUMBER: builtins.int
|
||||
TYPE_FIELD_NUMBER: builtins.int
|
||||
ID_KEYS_FIELD_NUMBER: builtins.int
|
||||
DESCRIPTION_KEYS_FIELD_NUMBER: builtins.int
|
||||
schema_url: builtins.str
|
||||
"""The Schema URL, if known. This is the identifier of the Schema that the entity data
|
||||
is recorded in. To learn more about Schema URL see
|
||||
https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
|
||||
|
||||
This schema_url applies to the data in this message and to the Resource attributes
|
||||
referenced by id_keys and description_keys.
|
||||
TODO: discuss if we are happy with this somewhat complicated definition of what
|
||||
the schema_url applies to.
|
||||
|
||||
This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.
|
||||
"""
|
||||
type: builtins.str
|
||||
"""Defines the type of the entity. MUST not change during the lifetime of the entity.
|
||||
For example: "service" or "host". This field is required and MUST not be empty
|
||||
for valid entities.
|
||||
"""
|
||||
@property
|
||||
def id_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
||||
"""Attribute Keys that identify the entity.
|
||||
MUST not change during the lifetime of the entity. The Id must contain at least one attribute.
|
||||
These keys MUST exist in the containing {message}.attributes.
|
||||
"""
|
||||
@property
|
||||
def description_keys(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
||||
"""Descriptive (non-identifying) attribute keys of the entity.
|
||||
MAY change over the lifetime of the entity. MAY be empty.
|
||||
These attribute keys are not part of entity's identity.
|
||||
These keys MUST exist in the containing {message}.attributes.
|
||||
"""
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
schema_url: builtins.str = ...,
|
||||
type: builtins.str = ...,
|
||||
id_keys: collections.abc.Iterable[builtins.str] | None = ...,
|
||||
description_keys: collections.abc.Iterable[builtins.str] | None = ...,
|
||||
) -> None: ...
|
||||
def ClearField(self, field_name: typing_extensions.Literal["description_keys", b"description_keys", "id_keys", b"id_keys", "schema_url", b"schema_url", "type", b"type"]) -> None: ...
|
||||
|
||||
global___EntityRef = EntityRef
|
||||
Reference in New Issue
Block a user