Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add READMEs to every package #5103

Merged
merged 16 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: ci
dmathieu marked this conversation as resolved.
Show resolved Hide resolved
on:
push:
branches:
- main
pull_request:
jobs:
readme_presence:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Install zsh
run: sudo apt-get update; sudo apt-get install zsh

- name: Run readme.sh
run: ./.github/workflows/scripts/readme.sh
19 changes: 19 additions & 0 deletions .github/workflows/scripts/readme.sh
dmathieu marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/zsh -ex

# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

dirs=(`find . -type f -name "go.mod" -not -path "*/internal/*" -exec dirname {} \; | sort | egrep '^./'`)
pellared marked this conversation as resolved.
Show resolved Hide resolved
dmathieu marked this conversation as resolved.
Show resolved Hide resolved
dmathieu marked this conversation as resolved.
Show resolved Hide resolved
dmathieu marked this conversation as resolved.
Show resolved Hide resolved
topdir=`pwd`

for dir in $dirs; do
echo "checking $dir"

cd $dir
pwd
if [ ! -f "README.md" ]; then
echo "couldn't find README.md for $dir"
exit 1
dmathieu marked this conversation as resolved.
Show resolved Hide resolved
fi
cd $topdir
done
3 changes: 3 additions & 0 deletions bridge/opencensus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OpenTelemetry/OpenCensus Bridge

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/bridge/opencensus)](https://pkg.go.dev/go.opentelemetry.io/otel/bridge/opencensus)
3 changes: 3 additions & 0 deletions bridge/opencensus/test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OpenTelemetry/OpenCensus Bridge Tests

This package is used for internal tests only.
3 changes: 3 additions & 0 deletions bridge/opentracing/test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OpenTelemetry/OpenTracing Bridge Tests

This package is used for internal tests only.
3 changes: 3 additions & 0 deletions example/dice/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dice Example

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/example/dice)](https://pkg.go.dev/go.opentelemetry.io/otel/example/dice)
3 changes: 3 additions & 0 deletions example/namedtracer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Named Tracer Example

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/example/namedtracer)](https://pkg.go.dev/go.opentelemetry.io/otel/example/namedtracer)
3 changes: 3 additions & 0 deletions example/opencensus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Opencensus Example

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/example/opencensus)](https://pkg.go.dev/go.opentelemetry.io/otel/example/opencensus)
3 changes: 3 additions & 0 deletions example/prometheus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Prometheus Example

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/example/prometheus)](https://pkg.go.dev/go.opentelemetry.io/otel/example/prometheus)
3 changes: 3 additions & 0 deletions exporters/otlp/otlpmetric/otlpmetricgrpc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OTLP Metric gRPC Exporter

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc)](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc)
3 changes: 3 additions & 0 deletions exporters/otlp/otlpmetric/otlpmetrichttp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OTLP Metric HTTP Exporter

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp)](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp)
3 changes: 3 additions & 0 deletions exporters/otlp/otlptrace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OTLP Trace Exporter

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/exporters/otlp/otlptrace)](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace)
3 changes: 3 additions & 0 deletions exporters/otlp/otlptrace/otlptracegrpc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OTLP Trace gRPC Exporter

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc)](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc)
3 changes: 3 additions & 0 deletions exporters/otlp/otlptrace/otlptracehttp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# OTLP Trace HTTP Exporter

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp)](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp)
3 changes: 3 additions & 0 deletions exporters/prometheus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Prometheus Exporter

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/exporters/prometheus)](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/prometheus)
3 changes: 3 additions & 0 deletions exporters/stdout/stdoutmetric/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# STDOUT Metric Exporter

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/exporters/stdout/stdoutmetric)](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/stdout/stdoutmetric)
3 changes: 3 additions & 0 deletions exporters/stdout/stdouttrace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# STDOUT Trace Exporter

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/exporters/stdout/stdouttrace)](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/stdout/stdouttrace)
3 changes: 3 additions & 0 deletions exporters/zipkin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Zipkin Exporter

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/exporters/zipkin)](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/zipkin)
3 changes: 3 additions & 0 deletions log/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Log API

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/log)](https://pkg.go.dev/go.opentelemetry.io/otel/log)
3 changes: 3 additions & 0 deletions metric/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Metric API

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/metric)](https://pkg.go.dev/go.opentelemetry.io/otel/metric)
3 changes: 3 additions & 0 deletions sdk/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SDK

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/sdk)](https://pkg.go.dev/go.opentelemetry.io/otel/sdk)
3 changes: 3 additions & 0 deletions sdk/log/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Log SDK

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/sdk/log)](https://pkg.go.dev/go.opentelemetry.io/otel/sdk/log)
3 changes: 3 additions & 0 deletions sdk/metric/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Metric SDK

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/sdk/metric)](https://pkg.go.dev/go.opentelemetry.io/otel/sdk/metric)
3 changes: 3 additions & 0 deletions trace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Trace API

[![PkgGoDev](https://pkg.go.dev/badge/go.opentelemetry.io/otel/trace)](https://pkg.go.dev/go.opentelemetry.io/otel/trace)
Loading