Skip to content

Conversation

smortex
Copy link
Contributor

@smortex smortex commented Aug 23, 2025

The "ECS Tooling Usage" guide has a "TLDR example" to get started. It needs to be adjusted by the user to generate templates, but since 009caf4, the user also have to provide a value for the --semconv-version required parameter. Unfortunately, nothing is told about this parameter in that file, leading the user with a cryptic:

Traceback (most recent call last):
  File "./ecs/scripts/generator.py", line 144, in <module>
    main()
  File "./ecs/scripts/generator.py", line 46, in main
    raise KeyError("OTel Semantic Conventions version has not been provided as a config option '--semconv-version'")
KeyError: "OTel Semantic Conventions version has not been provided as a config option '--semconv-version'"

Adjust the example to make bootstraping a custom config easier.

Only the first example is adjusted in this PR, as it makes examples more verbose and I assumed the user would find how to quickly fix the issue when they follow the guide bottom-down. On request, I can adjust the PR to fix the other examples for correctness, or adjust the script so that it loads the version from that file if not provided.

The "ECS Tooling Usage" guide has a "TLDR example" to get started.  It
needs to be adjusted by the user to generate templates, but since
009caf4, the user also have to provide
a value for the `--semconv-version` required parameter.  Unfortunately,
nothing is told about this parameter in that file, leading the user with
a cryptic:

```
Traceback (most recent call last):
  File "./ecs/scripts/generator.py", line 144, in <module>
    main()
  File "./ecs/scripts/generator.py", line 46, in main
    raise KeyError("OTel Semantic Conventions version has not been provided as a config option '--semconv-version'")
KeyError: "OTel Semantic Conventions version has not been provided as a config option '--semconv-version'"
```

Adjust the example to make bootstraping a custom config easier.
@smortex smortex requested a review from a team as a code owner August 23, 2025 01:54
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

Copy link
Contributor

@mjwolf mjwolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the contribution!

@mjwolf mjwolf merged commit c0bf045 into elastic:main Aug 28, 2025
6 checks passed
@smortex smortex deleted the add-mandatory-parameter-to-tldr-example branch August 28, 2025 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants