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

move faas to registry #525

Merged
merged 22 commits into from
Mar 7, 2024
Merged

Conversation

trisch-me
Copy link
Contributor

Changes

Move faas attributes to the registry

Merge requirement checklist

@trisch-me trisch-me requested review from a team November 15, 2023 14:02
@trisch-me trisch-me marked this pull request as draft November 15, 2023 14:08
@trisch-me trisch-me marked this pull request as ready for review November 15, 2023 14:24
model/registry/faas.yaml Show resolved Hide resolved
docs/faas/faas-spans.md Outdated Show resolved Hide resolved
@AlexanderWert
Copy link
Member

Blocked by: open-telemetry/build-tools#242

@joaopgrassi
Copy link
Member

joaopgrassi commented Nov 28, 2023

Blocked by: open-telemetry/build-tools#242

@AlexanderWert Now thinking, is this really blocked? The attributes that were defined as resource before are not used on spans or metrics, so it should be fine to define them in the registry as resource for now, no? That would unblock this PR.

@AlexanderWert
Copy link
Member

AlexanderWert commented Nov 28, 2023

Blocked by: open-telemetry/build-tools#242

@AlexanderWert Now thinking, is this really blocked? The attributes that were defined as resource before are not used on spans or metrics, so it should be fine to define them in the registry as resource for now, no? That would unblock this PR.

The problem is not only on single attributes but even when a single namespace contains a mix of resource and semantic attributes, which is the case here (for example: faas.trigger, faas.coldstart, faas.invoked_*, etc.)

A workaround could be to define two attribute groups in registry, with the same prefix, where one would be for the resources and the other for semantic attributes. Or we wait for the fix in the tooling and do it properly here.

@trisch-me
Copy link
Contributor Author

I would vote for a proper workaround assuming we could easily merge it later.
Also as we have discussed before, not all attributes can be easily divided into groups so I would like to have in registry just attributes.

Also as another option - we could merge all open PRs with resource attributes if needed and have a separate issue where we track it to change it later for all. We already do have temporary fix for some other attributes. This will reduce the amount of blocked PRs for now and should be fixed with just 1 PR later.

What do you think @AlexanderWert @joaopgrassi ?

@joaopgrassi
Copy link
Member

A workaround could be to define two attribute groups in registry, with the same prefix, where one would be for the resources and the other for semantic attributes.

Also as another option - we could merge all open PRs with resource attributes if needed and have a separate issue where we track it to change it later for all. We already do have temporary fix for some other attributes. This will reduce the amount of blocked PRs for now and should be fixed with just 1 PR later.

Yeah that's what I meant, for those that don't appear in both spans/metrics and resources, we can just port them to the registry as they are today (with res ones having the same prefix but type resource) and the ones who are really appearing we block. At least then we get rid of all the blocked PRs, and with issues we can later track them down once the fix is available.

Either way is fine by me

@trisch-me
Copy link
Contributor Author

@AlexanderWert do you think I could change it to resource field attributes and then later we would change it to proper value as soon as fix it there?

@trisch-me
Copy link
Contributor Author

Actually I see we have here again mixed fields, from attributes and from resource, so it will break no matter what we will choose as the type. So we need to have build tools fixed in order to merge this one

@trisch-me
Copy link
Contributor Author

@joaopgrassi could you please check again?

.chloggen/faas_registry.yaml Outdated Show resolved Hide resolved
@joaopgrassi joaopgrassi added the Skip Changelog Label to skip the changelog check label Feb 8, 2024
Copy link

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Feb 28, 2024
@github-actions github-actions bot removed the Stale label Feb 29, 2024
@lmolkova lmolkova merged commit 3d409a7 into open-telemetry:main Mar 7, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog Label to skip the changelog check
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

6 participants