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 blog post about the OTTL context inference feature #6290

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

edmocosta
Copy link

@edmocosta edmocosta commented Feb 11, 2025

Blog post about the upcoming OTTL context inference feature (open-telemetry/opentelemetry-collector-contrib#29017), which will be released on version 0.120.0.


Closes: #6289
Preview: https://deploy-preview-6290--opentelemetry.netlify.app/

@github-actions github-actions bot added the blog label Feb 11, 2025
@opentelemetrybot opentelemetrybot requested a review from a team February 11, 2025 16:36
content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
[transform processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/transformprocessor).
This feature removes the need to manually specify contexts, improving statement
processing efficiency by automatically selecting the most appropriate one. This
optimization ensures that data transformations are both accurate and performant.
Copy link
Contributor

Choose a reason for hiding this comment

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

Not strictly necessary to mention this, and we touch on it when talking about the flat configuration style, but from a general UX standpoint, this change also relieves users from needing to know the concept of contexts and instead just think about the data they want to work with.

Copy link
Member

Choose a reason for hiding this comment

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

I think we should highlight this point as it is the primary motivator for this work.

Copy link
Member

Choose a reason for hiding this comment

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

Should we also point out that soon this will make statements portable between components that use OTTL?

Copy link
Author

@edmocosta edmocosta Feb 12, 2025

Choose a reason for hiding this comment

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

Should we also point out that soon this will make statements portable between components that use OTTL?

It's kind of mentioning it here, but without providing much details.

Copy link
Author

Choose a reason for hiding this comment

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

Not strictly necessary to mention this, and we touch on it when talking about the flat configuration style, but from a general UX standpoint, this change also relieves users from needing to know the concept of contexts and instead just think about the data they want to work with.

I've pushed an extra change mentioning that. Could you please take a look again? thanks!

content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
@edmocosta edmocosta changed the title Add OTTL contexts just got easier blog post Add blog post about the OTTL context inference feature Feb 11, 2025
@svrnm svrnm requested review from a team and codeboten and removed request for a team February 12, 2025 08:51
@svrnm
Copy link
Member

svrnm commented Feb 12, 2025

Requesting review from @open-telemetry/collector-approvers

@edmocosta edmocosta marked this pull request as ready for review February 12, 2025 09:06
@edmocosta edmocosta requested a review from a team as a code owner February 12, 2025 09:06
Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

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

I recommend using "OTTL context" or "OTTL contexts" throughout this post to disambiguate.

Overall looking pretty good.

cSpell:ignore: OTTL Vamerlatti
---

Selecting the right context for running OTTL statements can be challenging, even
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll want a link for context here that disambiguates it from the "context propagation" context that is predominantly used in the site.

content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
Comment on lines 56 to 57
With the new flat configuration style, the same logic is expressed more
concisely as:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
With the new flat configuration style, the same logic is expressed more
concisely as:
With the new flat configuration style, the same logic is expressed more
concisely by letting you specify the OTTL context as a part of a key:

Copy link
Author

Choose a reason for hiding this comment

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

Suggested change
With the new flat configuration style, the same logic is expressed more
concisely as:
With the new flat configuration style, the same logic is expressed more
concisely by simply providing a list of statements:

I think something like that would better fit here. WDYT?

content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
content/en/blog/2025/ottl-contexts-just-got-easier.md Outdated Show resolved Hide resolved
The context inferrer would select the `metric` context instead, since no data
points are accessed. Although it would be possible to run the statements using
the `datapoint` context, `metric` is the most efficient option.

Copy link
Contributor

Choose a reason for hiding this comment

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

Missing here is probably a subsection stating when you should use which form. Users will generally want to know which they should generally prefer, and when.

Copy link
Author

Choose a reason for hiding this comment

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

@opentelemetrybot opentelemetrybot requested a review from a team February 12, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Blog Post: OTTL contexts just got easier with context inference
5 participants