-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support gRPC protocol in CollectorExporter
- Loading branch information
Showing
17 changed files
with
173 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.dart_tool | ||
.packages | ||
pubspec.lock | ||
opentelemetry-proto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
lib/src/sdk/proto/opentelemetry/proto/collector/trace/v1/trace_service.pbenum.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
lib/src/sdk/proto/opentelemetry/proto/collector/trace/v1/trace_service.pbgrpc.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// | ||
// Generated code. Do not modify. | ||
// source: opentelemetry/proto/collector/trace/v1/trace_service.proto | ||
// | ||
// @dart = 2.12 | ||
|
||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references | ||
// ignore_for_file: constant_identifier_names, library_prefixes | ||
// ignore_for_file: non_constant_identifier_names, prefer_final_fields | ||
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import | ||
|
||
import 'dart:async' as $async; | ||
import 'dart:core' as $core; | ||
|
||
import 'package:grpc/service_api.dart' as $grpc; | ||
import 'package:protobuf/protobuf.dart' as $pb; | ||
|
||
import 'trace_service.pb.dart' as $1; | ||
|
||
export 'trace_service.pb.dart'; | ||
|
||
@$pb.GrpcServiceName('opentelemetry.proto.collector.trace.v1.TraceService') | ||
class TraceServiceClient extends $grpc.Client { | ||
static final _$export = $grpc.ClientMethod<$1.ExportTraceServiceRequest, $1.ExportTraceServiceResponse>( | ||
'/opentelemetry.proto.collector.trace.v1.TraceService/Export', | ||
($1.ExportTraceServiceRequest value) => value.writeToBuffer(), | ||
($core.List<$core.int> value) => $1.ExportTraceServiceResponse.fromBuffer(value)); | ||
|
||
TraceServiceClient($grpc.ClientChannel channel, | ||
{$grpc.CallOptions? options, | ||
$core.Iterable<$grpc.ClientInterceptor>? interceptors}) | ||
: super(channel, options: options, | ||
interceptors: interceptors); | ||
|
||
$grpc.ResponseFuture<$1.ExportTraceServiceResponse> export($1.ExportTraceServiceRequest request, {$grpc.CallOptions? options}) { | ||
return $createUnaryCall(_$export, request, options: options); | ||
} | ||
} | ||
|
||
@$pb.GrpcServiceName('opentelemetry.proto.collector.trace.v1.TraceService') | ||
abstract class TraceServiceBase extends $grpc.Service { | ||
$core.String get $name => 'opentelemetry.proto.collector.trace.v1.TraceService'; | ||
|
||
TraceServiceBase() { | ||
$addMethod($grpc.ServiceMethod<$1.ExportTraceServiceRequest, $1.ExportTraceServiceResponse>( | ||
'Export', | ||
export_Pre, | ||
false, | ||
false, | ||
($core.List<$core.int> value) => $1.ExportTraceServiceRequest.fromBuffer(value), | ||
($1.ExportTraceServiceResponse value) => value.writeToBuffer())); | ||
} | ||
|
||
$async.Future<$1.ExportTraceServiceResponse> export_Pre($grpc.ServiceCall call, $async.Future<$1.ExportTraceServiceRequest> request) async { | ||
return export(call, await request); | ||
} | ||
|
||
$async.Future<$1.ExportTraceServiceResponse> export($grpc.ServiceCall call, $1.ExportTraceServiceRequest request); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
lib/src/sdk/proto/opentelemetry/proto/common/v1/common.pb.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
lib/src/sdk/proto/opentelemetry/proto/common/v1/common.pbenum.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
lib/src/sdk/proto/opentelemetry/proto/common/v1/common.pbjson.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
lib/src/sdk/proto/opentelemetry/proto/resource/v1/resource.pbenum.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
lib/src/sdk/proto/opentelemetry/proto/resource/v1/resource.pbjson.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.