Skip to content

Commit

Permalink
docs(api): bring back detailed api documentation (#5434)
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc authored Feb 7, 2025
1 parent e744798 commit b9d5aee
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"precompile": "cross-var lerna run version --scope $npm_package_name --include-dependencies",
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"docs": "typedoc",
"docs:deploy": "gh-pages --dist docs/out",
"docs:test": "linkinator docs/out --silent && linkinator docs/*.md *.md --markdown --silent",
"lint:fix": "eslint . --ext .ts --fix",
"lint": "eslint . --ext .ts",
"test:browser": "karma start --single-run",
Expand Down
6 changes: 6 additions & 0 deletions api/src/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* Any exports here may change at any time and without warning
* @module @opentelemetry/api/experimental
*/

export { wrapTracer, SugaredTracer } from './trace/SugaredTracer';
export { SugaredSpanOptions } from './trace/SugaredOptions';
4 changes: 4 additions & 0 deletions api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* limitations under the License.
*/

/**
* @module @opentelemetry/api
*/

export { BaggageEntry, BaggageEntryMetadata, Baggage } from './baggage/types';
export { baggageEntryMetadataFromString } from './baggage/utils';
export { Exception } from './common/Exception';
Expand Down
6 changes: 6 additions & 0 deletions api/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"entryPoints": [
"src/index.ts",
"src/experimental/index.ts"
]
}

0 comments on commit b9d5aee

Please sign in to comment.