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

Commit c960ebd

Browse files
g-easyIan Sturdy
authored andcommitted
Fix a common miscapitalization of OpenCensus. (#98)
1 parent 4e2206e commit c960ebd

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ before_install:
1212

1313
script:
1414
# We can't use --noshow_progress because Travis terminates the
15-
# build after 10 mins without output.
15+
# build after 10 mins without output.
1616
- bazel build $BAZEL_OPTIONS --experimental_ui_actions_shown=1 -k $(bazel query "kind(rule, //...)" | grep -v :_)
1717
- bazel test $BAZEL_OPTIONS --experimental_ui_actions_shown=1 -k $(bazel query "kind(test, //...) except attr('tags', 'manual|noci', //...)" | grep -v :_)
18-

opencensus/exporters/stats/prometheus/internal/prometheus_test_server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "prometheus/exposer.h"
2323

2424
int main(int argc, char** argv) {
25-
// Expose a Prometheus endpoint and register the Opencensus exporter with it.
25+
// Expose a Prometheus endpoint and register the OpenCensus exporter with it.
2626
prometheus::Exposer exposer("127.0.0.1:8080");
2727
auto exporter =
2828
std::make_shared<opencensus::exporters::stats::PrometheusExporter>();

tools/format.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
# limitations under the License.
1515
#
1616
# Formats code under opencensus/, exits with 0 if there were no changes.
17+
if [[ ! -e tools/format.sh ]]; then
18+
echo "This tool must be run from the topmost OpenCensus directory." >&2
19+
exit 1
20+
fi
1721
set -e
22+
# Correct a common miscapitalization.
23+
sed -i 's/Open[c]ensus/OpenCensus/g' $(find * -type f)
1824
# For easier debugging: print the version because it affects the formatting.
1925
CMD=clang-format
2026
$CMD -version

0 commit comments

Comments
 (0)