Skip to content

Conversation

@sagarvish1989
Copy link

Fixes #
Design discussion issue #

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 21, 2024

CLA Missing ID CLA Not Signed

@github-actions github-actions bot requested review from CodeBlanch and reyang October 21, 2024 22:54
@github-actions github-actions bot added the comp:exporter.onecollector Things related to OpenTelemetry.Exporter.OneCollector label Oct 21, 2024
string? eventNamespace,
string? eventName)
string? eventName,
EventNameDelimiter eventNameDelimiter = EventNameDelimiter.Period)
Copy link

Choose a reason for hiding this comment

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

Does this do anything?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, not needed. Will remove.

WriteEventFullNameComponent(eventNamespace, destination, ref cursor);

destination[cursor++] = (byte)'.';
byte delimiter = eventNameDelimiter == EventNameDelimiter.Period ? (byte)'.' : (byte)'_';
Copy link

Choose a reason for hiding this comment

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

This should use a lookup table

}

private static byte[] BuildEventFullName(string eventNamespace, string eventName)
private static byte[] BuildEventFullName(string eventNamespace, string eventName, EventNameDelimiter eventNameDelimiter = EventNameDelimiter.Period)
Copy link

Choose a reason for hiding this comment

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

Probably by the time this function is reached, the eventNameDelimiter should be a byte and not an enum

Copy link

@gesiu gesiu Oct 21, 2024

Choose a reason for hiding this comment

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

Actually, unless we really want this to be settable on a per-event basis, this shouldn't be a parameter - you should just reference the property of the EventNameManager

Copy link
Author

Choose a reason for hiding this comment

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

Agreed.


private readonly string defaultEventNamespace;
private readonly string defaultEventName;
private readonly EventNameDelimiter defaultEventNameDelimiter;
Copy link

Choose a reason for hiding this comment

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

I think this should just be 'eventNameDelimiter'.
The 'defaultEventNamespace' and 'defaultEventName' properties are about the values for a default event, not the default values for an arbitrary event

Copy link

Choose a reason for hiding this comment

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

That is - someone could call log(dataFields: foo) without passing an event name, and the event name would be the default event name. (pseudocode, something like that)

@Kielek
Copy link
Member

Kielek commented Oct 22, 2024

@sagarvish1989, could you please sing EasyCLA?
This is hard requirement to merge anything to this repository.

@github-actions
Copy link
Contributor

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 Oct 30, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2024

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Nov 7, 2024
@sagarvish1989
Copy link
Author

Trying to reopen the PR to make it active

@github-actions
Copy link
Contributor

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 Nov 26, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2024

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Dec 3, 2024
@sagarvish1989
Copy link
Author

@sagarvish1989, could you please sing EasyCLA? This is hard requirement to merge anything to this repository.

@Kielek For CLA, after selecting Microsoft corporation, I see it only gives Jason Messer as option for CLA manager . I had submitted request at least a week back and it hasn't gotten approved. Any suggestions how can I expedite this process?

@reyang
Copy link
Member

reyang commented Dec 4, 2024

@sagarvish1989, could you please sing EasyCLA? This is hard requirement to merge anything to this repository.

@Kielek For CLA, after selecting Microsoft corporation, I see it only gives Jason Messer as option for CLA manager . I had submitted request at least a week back and it hasn't gotten approved. Any suggestions how can I expedite this process?

@sagarvish1989 This is a Microsoft internal thing which I don't think @Kielek would be able to help. Would you send an email to whoever the approver is, and cc me (search for Reiley Yang in Microsoft corpnet) - I might be able to help there.

@abuhsayem
Copy link
Contributor

@reyang @CodeBlanch @gesiu
It would be great if anyone can reopen this PR as I don't see an option to do so. I was able to checkout this branch using Github CLI 'gh pr checkout 2232' and successfully built the project in VS Studio .Net, not sure if I have permissions to push changes to it. Brian assigned me to complete this PR as Sagar is on bonding leave.

@reyang
Copy link
Member

reyang commented Jan 23, 2025

@reyang @CodeBlanch @gesiu It would be great if anyone can reopen this PR as I don't see an option to do so. I was able to checkout this branch using Github CLI 'gh pr checkout 2232' and successfully built the project in VS Studio .Net, not sure if I have permissions to push changes to it. Brian assigned me to complete this PR as Sagar is on bonding leave.

I've reopened it for you. Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2025

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 5, 2025
@github-actions
Copy link
Contributor

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:exporter.onecollector Things related to OpenTelemetry.Exporter.OneCollector Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants