atatus_grpc_interceptor 1.0.4 copy "atatus_grpc_interceptor: ^1.0.4" to clipboard
atatus_grpc_interceptor: ^1.0.4 copied to clipboard

PlatformAndroid

A plugin for use with the AtatusSdk, used to track performance of gRPC and enable Atatus Distributed Tracing.

Atatus gRPC Interceptor / Plugin #

A plugin for use with the AtatusSdk, used to track performance of gRPC and enable Atatus Distributed Tracing.

Getting started #

To utilize this plugin, create an instance of AtatusGrpcInterceptor, then pass it to your generated gRPC client:

import 'package:atatus_grpc_interceptor/atatus_grpc_interceptor.dart'

// Initialize Atatus, be sure to set the [AtatusConfiguration.firstPartyHosts] member
// to enable Atatus Distributed Tracing
final config = AtatusConfiguration(
  // ...
  firstParthHosts = ['localhost']
)

// Create the gRPC channel
final channel = ClientChannel(
  'localhost',
  port: 50051,
  options: ChannelOptions(
    // ...
  ),
);

// Create the gRPC interceptor with the supported channel
final atatusInterceptor = AtatusGrpcInterceptor(AtatusSdk.instance, channel);

// Create the gRPC client, passing in the Atatus interceptor
final stub = GreeterClient(channel, interceptors: [atatusInterceptor]);

Contributing #

Pull requests are welcome. First, open an issue to discuss what you would like to change. For more information, read the Contributing guide in the root repository.

Generating the test gRPC files #

If you are working on tests for this package and need to regenerate the gRPC client and related code, follow the instructions on the gRPC Quick Start page.

The protobuf spec is held in test/protos/helloworld.proto

License #

Apache License, v2.0

0
likes
110
points
177
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A plugin for use with the AtatusSdk, used to track performance of gRPC and enable Atatus Distributed Tracing.

Repository (GitHub)

License

Apache-2.0 (license)

Dependencies

atatus_flutter_plugin, flutter, grpc, uuid

More

Packages that depend on atatus_grpc_interceptor