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

Commit e5363c9

Browse files
g-easyIan Sturdy
authored andcommitted
StackDriver -> Stackdriver. (#108)
1 parent 9cde3c9 commit e5363c9

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

opencensus/exporters/trace/stackdriver/internal/stackdriver_exporter.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace {
3737
constexpr size_t kAttributeStringLen = 256;
3838
constexpr size_t kAnnotationStringLen = 256;
3939
constexpr size_t kDisplayNameStringLen = 128;
40-
constexpr char kGoogleStackDriverTraceAddress[] = "cloudtrace.googleapis.com";
40+
constexpr char kGoogleStackdriverTraceAddress[] = "cloudtrace.googleapis.com";
4141

4242
constexpr char kAgentKey[] = "g.co/agent";
4343
constexpr char kAgentValue[] = "opencensus-cpp";
@@ -285,7 +285,7 @@ void Handler::Export(
285285

286286
void StackdriverExporter::Register(absl::string_view project_id) {
287287
auto creds = grpc::GoogleDefaultCredentials();
288-
auto channel = ::grpc::CreateChannel(kGoogleStackDriverTraceAddress, creds);
288+
auto channel = ::grpc::CreateChannel(kGoogleStackdriverTraceAddress, creds);
289289
::opencensus::trace::exporter::SpanExporter::RegisterHandler(
290290
absl::make_unique<Handler>(project_id, channel));
291291
}

opencensus/stats/distribution.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TestUtils;
3434
// values for one measure and set of tags). It stores both a statistical summary
3535
// (mean, sum of squared deviation, and range) and a histogram recording the
3636
// number of values in each bucket (as defined by a BucketBoundaries).
37-
// This corresponds to a StackDriver Distribution metric
37+
// This corresponds to a Stackdriver Distribution metric
3838
// (https://cloud.google.com/monitoring/api/ref_v3/rest/v3/TypedValue#Distribution).
3939
// Distribution is thread-compatible.
4040
class Distribution final {

tools/format.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ if [[ ! -e tools/format.sh ]]; then
1919
exit 1
2020
fi
2121
set -e
22-
# Correct a common miscapitalization.
22+
# Correct common miscapitalizations.
2323
sed -i 's/Open[c]ensus/OpenCensus/g' $(find * -type f)
24+
sed -i 's/Stack[D]river/Stackdriver/g' $(find * -type f)
2425
# For easier debugging: print the version because it affects the formatting.
2526
CMD=clang-format
2627
$CMD -version

0 commit comments

Comments
 (0)