Skip to content

Commit f6f7883

Browse files
committed
Add pb2 files for protobuf v6
1 parent 8e7cb4c commit f6f7883

File tree

2 files changed

+73
-1
lines changed

2 files changed

+73
-1
lines changed

newrelic/core/infinite_tracing_pb2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
PROTOBUF_VERSION = (0, 0, 0)
2121

2222
# Import appropriate generated pb2 file for protobuf version
23-
if PROTOBUF_VERSION >= (5,):
23+
if PROTOBUF_VERSION >= (6,):
24+
from newrelic.core.infinite_tracing_v6_pb2 import AttributeValue, RecordStatus, Span, SpanBatch # noqa: F401
25+
elif PROTOBUF_VERSION >= (5,):
2426
from newrelic.core.infinite_tracing_v5_pb2 import AttributeValue, RecordStatus, Span, SpanBatch # noqa: F401
2527
elif PROTOBUF_VERSION >= (4,):
2628
from newrelic.core.infinite_tracing_v4_pb2 import AttributeValue, RecordStatus, Span, SpanBatch # noqa: F401
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Copyright 2010 New Relic, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# -*- coding: utf-8 -*-
16+
# Generated by the protocol buffer compiler. DO NOT EDIT!
17+
# NO CHECKED-IN PROTOBUF GENCODE
18+
# source: infinite_tracing.proto
19+
# Protobuf Python Version: 6.30.0
20+
"""Generated protocol buffer code."""
21+
from google.protobuf import descriptor as _descriptor
22+
from google.protobuf import descriptor_pool as _descriptor_pool
23+
from google.protobuf import runtime_version as _runtime_version
24+
from google.protobuf import symbol_database as _symbol_database
25+
from google.protobuf.internal import builder as _builder
26+
_runtime_version.ValidateProtobufRuntimeVersion(
27+
_runtime_version.Domain.PUBLIC,
28+
6,
29+
30,
30+
0,
31+
'',
32+
'infinite_tracing.proto'
33+
)
34+
# @@protoc_insertion_point(imports)
35+
36+
_sym_db = _symbol_database.Default()
37+
38+
39+
40+
41+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16infinite_tracing.proto\x12\x15\x63om.newrelic.trace.v1\"7\n\tSpanBatch\x12*\n\x05spans\x18\x01 \x03(\x0b\x32\x1b.com.newrelic.trace.v1.Span\"\x86\x04\n\x04Span\x12\x10\n\x08trace_id\x18\x01 \x01(\t\x12?\n\nintrinsics\x18\x02 \x03(\x0b\x32+.com.newrelic.trace.v1.Span.IntrinsicsEntry\x12H\n\x0fuser_attributes\x18\x03 \x03(\x0b\x32/.com.newrelic.trace.v1.Span.UserAttributesEntry\x12J\n\x10\x61gent_attributes\x18\x04 \x03(\x0b\x32\x30.com.newrelic.trace.v1.Span.AgentAttributesEntry\x1aX\n\x0fIntrinsicsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.com.newrelic.trace.v1.AttributeValue:\x02\x38\x01\x1a\\\n\x13UserAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.com.newrelic.trace.v1.AttributeValue:\x02\x38\x01\x1a]\n\x14\x41gentAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.com.newrelic.trace.v1.AttributeValue:\x02\x38\x01\"t\n\x0e\x41ttributeValue\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\x42\x07\n\x05value\"%\n\x0cRecordStatus\x12\x15\n\rmessages_seen\x18\x01 \x01(\x04\x32\xc5\x01\n\rIngestService\x12T\n\nRecordSpan\x12\x1b.com.newrelic.trace.v1.Span\x1a#.com.newrelic.trace.v1.RecordStatus\"\x00(\x01\x30\x01\x12^\n\x0fRecordSpanBatch\x12 .com.newrelic.trace.v1.SpanBatch\x1a#.com.newrelic.trace.v1.RecordStatus\"\x00(\x01\x30\x01\x62\x06proto3')
42+
43+
_globals = globals()
44+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
45+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'infinite_tracing_pb2', _globals)
46+
if not _descriptor._USE_C_DESCRIPTORS:
47+
DESCRIPTOR._loaded_options = None
48+
_globals['_SPAN_INTRINSICSENTRY']._loaded_options = None
49+
_globals['_SPAN_INTRINSICSENTRY']._serialized_options = b'8\001'
50+
_globals['_SPAN_USERATTRIBUTESENTRY']._loaded_options = None
51+
_globals['_SPAN_USERATTRIBUTESENTRY']._serialized_options = b'8\001'
52+
_globals['_SPAN_AGENTATTRIBUTESENTRY']._loaded_options = None
53+
_globals['_SPAN_AGENTATTRIBUTESENTRY']._serialized_options = b'8\001'
54+
_globals['_SPANBATCH']._serialized_start=49
55+
_globals['_SPANBATCH']._serialized_end=104
56+
_globals['_SPAN']._serialized_start=107
57+
_globals['_SPAN']._serialized_end=625
58+
_globals['_SPAN_INTRINSICSENTRY']._serialized_start=348
59+
_globals['_SPAN_INTRINSICSENTRY']._serialized_end=436
60+
_globals['_SPAN_USERATTRIBUTESENTRY']._serialized_start=438
61+
_globals['_SPAN_USERATTRIBUTESENTRY']._serialized_end=530
62+
_globals['_SPAN_AGENTATTRIBUTESENTRY']._serialized_start=532
63+
_globals['_SPAN_AGENTATTRIBUTESENTRY']._serialized_end=625
64+
_globals['_ATTRIBUTEVALUE']._serialized_start=627
65+
_globals['_ATTRIBUTEVALUE']._serialized_end=743
66+
_globals['_RECORDSTATUS']._serialized_start=745
67+
_globals['_RECORDSTATUS']._serialized_end=782
68+
_globals['_INGESTSERVICE']._serialized_start=785
69+
_globals['_INGESTSERVICE']._serialized_end=982
70+
# @@protoc_insertion_point(module_scope)

0 commit comments

Comments
 (0)