GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Define "none" numeric value by Kielek · Pull Request #3000 · open-telemetry/opentelemetry-specification

Conversation

@Kielek

@Kielek Kielek commented Dec 2, 2022

Copy link
Copy Markdown
Member

Fixes N/A

Changes

Define "none" numeric value.

It will be useful to correctly set OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT to no limit. For now, it should use int.maxvalue or similar values.

Related issues for enum handling #2102

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Kielek
Define "none" numeric value
193b354
@Kielek
Kielek requested review from a team December 2, 2022 09:03
@github-actions github-actions Bot assigned bogdandrutu Dec 2, 2022
pellared
pellared approved these changes Dec 2, 2022
View reviewed changes

@pellared pellared left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

👍

PS. Feels very "Pythonish" 😉

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Oberon00
Oberon00 requested changes Dec 2, 2022
View reviewed changes

@Oberon00 Oberon00 left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

First, I don't think this is specific to numeric values. Booleans, strings, enums, etc., might accept "null" values just as well.
Second, there is no concept of "null value" in this environment specification, so this specification, as written now, has no meaning (or an unclear meaning).
Your goal seems to allow explicitly setting "no limit" in the limit configuration. You should add a more specific spec to that subsection, instead of the generic section here.

(PS: Congrats on creating PR #3000 🥳)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@reyang

reyang commented Dec 2, 2022

Copy link
Copy Markdown
Member

It will be useful to correctly set OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT to no limit. For now, it should use int.maxvalue or similar values.

Why would someone want "no limit"? Related to #2960 (comment).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

reyang
reyang requested changes Dec 2, 2022
View reviewed changes

@reyang reyang left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Need to understand why "no limit" is needed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pellared

pellared commented Dec 5, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Need to understand why "no limit" is needed.

I agree that "unbounded limits" is a bad practice from "reliability" standpoint. But I do not see anything in the spec that disallows limitless configurations. Current default for OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT and OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT is "no limit". Wouldn't changing it be a breaking change?

Related comment: #2045 (comment)

If it is possible to have a unlimited configuration then we should allow setting it.

I have no clear nor strong opinion 😆

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Dec 13, 2022

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the Stale label Dec 13, 2022
@Kielek

Kielek commented Dec 15, 2022

Copy link
Copy Markdown
Member Author

I am closing this issue per last .NET AutoInstrumentation Discussion with @carlosalberto.
For now, there will be no possibility to set no-limit options. It is considered as to unpredictable.

Instead we should consider to change default values for OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT and OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT . I do not think that is is good practice to have default value which cannot be set by appropriate env. value.

Oberon00 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Kielek Kielek closed this Dec 15, 2022
@Kielek
Kielek deleted the patch-1 branch December 15, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Oberon00 Oberon00 Oberon00 requested changes
@reyang reyang reyang requested changes
@pellared pellared pellared approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@bogdandrutu bogdandrutu

Labels

Stale

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@Kielek @reyang @pellared @Oberon00 @bogdandrutu
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.