Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 7d50a11

Browse files
authored
Move the gRPC plugin into its own directory. (#47)
1 parent 905bd06 commit 7d50a11

File tree

17 files changed

+29
-31
lines changed

17 files changed

+29
-31
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# OpenCensus C++ Plugin library.
2-
#
31
# Copyright 2018, OpenCensus Authors
42
#
53
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -69,7 +67,7 @@ cc_test(
6967
tags = ["noci"], # TODO: determine why this times out on Travis and reenable.
7068
deps = [
7169
":grpc_plugin",
72-
"//opencensus/plugins/internal/testing:echo_proto",
70+
"//opencensus/plugins/grpc/internal/testing:echo_proto",
7371
"//opencensus/stats",
7472
"@com_github_grpc_grpc//:grpc++",
7573
"@com_google_absl//absl/strings",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#ifndef OPENCENSUS_PLUGINS_GRPC_PLUGIN_H_
16-
#define OPENCENSUS_PLUGINS_GRPC_PLUGIN_H_
15+
#ifndef OPENCENSUS_PLUGINS_GRPC_GRPC_PLUGIN_H_
16+
#define OPENCENSUS_PLUGINS_GRPC_GRPC_PLUGIN_H_
1717

1818
#include "absl/strings/string_view.h"
1919

2020
namespace opencensus {
2121

22-
// Registers the opencensus plugin with gRPC, so that it will be used for future
22+
// Registers the OpenCensus plugin with gRPC, so that it will be used for future
2323
// RPCs. This must be called before any views are created on the measures
2424
// defined below.
2525
void RegisterGrpcPlugin();
@@ -52,4 +52,4 @@ extern const absl::string_view kRpcServerResponseCountMeasureName;
5252

5353
} // namespace opencensus
5454

55-
#endif // OPENCENSUS_PLUGINS_GRPC_PLUGIN_H_
55+
#endif // OPENCENSUS_PLUGINS_GRPC_GRPC_PLUGIN_H_

opencensus/plugins/internal/channel_filter.cc renamed to opencensus/plugins/grpc/internal/channel_filter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "opencensus/plugins/internal/channel_filter.h"
15+
#include "opencensus/plugins/grpc/internal/channel_filter.h"
1616

1717
namespace opencensus {
1818

opencensus/plugins/internal/channel_filter.h renamed to opencensus/plugins/grpc/internal/channel_filter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef OPENCENSUS_PLUGINS_INTERNAL_CHANNEL_FILTER_H_
1616
#define OPENCENSUS_PLUGINS_INTERNAL_CHANNEL_FILTER_H_
1717

18-
#include "opencensus/plugins/internal/filter.h"
18+
#include "opencensus/plugins/grpc/internal/filter.h"
1919

2020
namespace opencensus {
2121

opencensus/plugins/internal/client_filter.cc renamed to opencensus/plugins/grpc/internal/client_filter.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "opencensus/plugins/internal/client_filter.h"
15+
#include "opencensus/plugins/grpc/internal/client_filter.h"
1616

1717
#include "absl/strings/str_cat.h"
1818
#include "absl/strings/string_view.h"
19-
#include "opencensus/plugins/grpc_plugin.h"
20-
#include "opencensus/plugins/internal/measures.h"
19+
#include "opencensus/plugins/grpc/grpc_plugin.h"
20+
#include "opencensus/plugins/grpc/internal/measures.h"
2121
#include "opencensus/stats/stats.h"
2222
#include "src/core/lib/surface/call.h"
2323

opencensus/plugins/internal/client_filter.h renamed to opencensus/plugins/grpc/internal/client_filter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
#include "absl/strings/string_view.h"
1919
#include "absl/time/time.h"
20-
#include "opencensus/plugins/internal/channel_filter.h"
21-
#include "opencensus/plugins/internal/filter.h"
20+
#include "opencensus/plugins/grpc/internal/channel_filter.h"
21+
#include "opencensus/plugins/grpc/internal/filter.h"
2222

2323
namespace opencensus {
2424

opencensus/plugins/internal/filter.cc renamed to opencensus/plugins/grpc/internal/filter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "opencensus/plugins/internal/filter.h"
15+
#include "opencensus/plugins/grpc/internal/filter.h"
1616
#include "include/grpc/impl/codegen/status.h"
1717

1818
namespace opencensus {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#include "absl/strings/string_view.h"
1919
#include "include/grpc/impl/codegen/status.h"
20-
#include "opencensus/plugins/internal/rpc_encoding.h"
20+
#include "opencensus/plugins/grpc/internal/rpc_encoding.h"
2121
#include "opencensus/trace/span.h"
2222
#include "opencensus/trace/span_context.h"
2323
#include "opencensus/trace/trace_params.h"

opencensus/plugins/internal/grpc_plugin.cc renamed to opencensus/plugins/grpc/internal/grpc_plugin.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "opencensus/plugins/grpc_plugin.h"
16-
#include "opencensus/plugins/internal/channel_filter.h"
17-
#include "opencensus/plugins/internal/client_filter.h"
18-
#include "opencensus/plugins/internal/measures.h"
19-
#include "opencensus/plugins/internal/server_filter.h"
15+
#include "opencensus/plugins/grpc/grpc_plugin.h"
16+
#include "opencensus/plugins/grpc/internal/channel_filter.h"
17+
#include "opencensus/plugins/grpc/internal/client_filter.h"
18+
#include "opencensus/plugins/grpc/internal/measures.h"
19+
#include "opencensus/plugins/grpc/internal/server_filter.h"
2020
#include "src/core/lib/surface/channel_init.h"
2121

2222
namespace opencensus {

opencensus/plugins/internal/measures.cc renamed to opencensus/plugins/grpc/internal/measures.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include "opencensus/plugins/internal/measures.h"
15+
#include "opencensus/plugins/grpc/internal/measures.h"
1616

17-
#include "opencensus/plugins/grpc_plugin.h"
17+
#include "opencensus/plugins/grpc/grpc_plugin.h"
1818
#include "opencensus/stats/stats.h"
1919

2020
namespace opencensus {

0 commit comments

Comments
 (0)