Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added OpenTelemetry REST endpoint for external systems to store logs in Salesforce#767

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
jongpie wants to merge8 commits intomain
base:main
Choose a base branch
Loading
fromfeature/logger-rest-resource

Conversation

jongpie
Copy link
Owner

Resolved#635 by adding a newLoggerRestResource Apex class that can be called by external systems to store external logging data in Salesforce, using OpenTelemetry's logs data model.

For now, this only includes the ability to store logging data, and only a handful of attributes are supported. Future releases will include:

  • Support for populating more attributes, which will then be stored in mapped fields inLog__c andLogEntry__c
  • Support for more HTTP verbs & endpoints: I started working on adding other endpoints, like aGET endpoint that could be used to also retrieve logging data from Salesforce in OpenTelemetry (OTel) format, but the complexity was growing with that effort, so I'll revisit it in a separate PR/release

anengineerdude, ferdinand-swoboda, JeroenSfdc, clint-rosetree, and ehsky reacted with heart emoji
@jongpiejongpie added Type: EnhancementNew feature or request Layer: Log ManagementItems related to the custom objects & Logger Console app Layer: Logger EngineItems related to the core logging engine Logging Source: APIItems related to using Nebula Logger via REST API Feature: OpenTelemetry SupportItems to related to supporting OpenTelemetry (OTel) and its standards for observability data labelsSep 18, 2024
@jongpiejongpietemporarily deployed to Event Monitoring Scratch OrgSeptember 18, 2024 14:24 — withGitHub Actions Inactive
@jongpiejongpietemporarily deployed to OmniStudio Scratch OrgSeptember 18, 2024 14:37 — withGitHub Actions Inactive
@jongpiejongpietemporarily deployed to Platform Cache Scratch OrgSeptember 18, 2024 14:38 — withGitHub Actions Inactive
@jongpiejongpietemporarily deployed to Experience Cloud Scratch OrgSeptember 18, 2024 14:50 — withGitHub Actions Inactive
@jongpiejongpieforce-pushed thefeature/logger-rest-resource branch fromc01b013 to2d5e814CompareSeptember 20, 2024 02:48
@jongpiejongpietemporarily deployed to Event Monitoring Scratch OrgSeptember 20, 2024 02:52 — withGitHub Actions Inactive
@jongpiejongpietemporarily deployed to Platform Cache Scratch OrgSeptember 20, 2024 03:05 — withGitHub Actions Inactive
@jongpiejongpietemporarily deployed to OmniStudio Scratch OrgSeptember 20, 2024 03:08 — withGitHub Actions Inactive
@jongpiejongpietemporarily deployed to Experience Cloud Scratch OrgSeptember 20, 2024 03:13 — withGitHub Actions Inactive
…external systems to store logging data in Salesforce, using OpenTelemetry's logs data model
…apped traceId to transactionId, and added more attributes for browser fields, HttpRequest fields, and HttpResponse fields
@jongpiejongpieforce-pushed thefeature/logger-rest-resource branch from476eee8 to2d224d2CompareDecember 30, 2024 04:22
@jongpiejongpieforce-pushed thefeature/logger-rest-resource branch from2d224d2 tof0c63dfCompareDecember 30, 2024 04:25
@jongpiejongpietemporarily deployed to Event Monitoring Scratch OrgDecember 30, 2024 04:30 — withGitHub Actions Inactive
@jongpiejongpietemporarily deployed to Platform Cache Scratch OrgDecember 30, 2024 04:42 — withGitHub Actions Inactive
@jongpiejongpietemporarily deployed to Experience Cloud Scratch OrgDecember 30, 2024 04:45 — withGitHub Actions Inactive
@jongpiejongpietemporarily deployed to OmniStudio Scratch OrgDecember 30, 2024 05:45 — withGitHub Actions Inactive
@codecovCodecov
Copy link

codecovbot commentedDec 30, 2024

Codecov Report

Attention: Patch coverage is92.37537% with26 lines in your changes missing coverage. Please review.

Project coverage is 91.51%. Comparing base(daf14e9) to head(f0c63df).

Files with missing linesPatch %Lines
...main/log-management/classes/LoggerRestResource.cls92.21%26 Missing⚠️
Additional details and impacted files
@@            Coverage Diff             @@##             main     #767      +/-   ##==========================================+ Coverage   85.97%   91.51%   +5.53%==========================================  Files          17       59      +42       Lines        1319     6609    +5290       Branches      200      200              ==========================================+ Hits         1134     6048    +4914- Misses        165      541     +376  Partials       20       20
FlagCoverage Δ
Apex92.89% <92.35%> (?)
LWC85.97% <100.00%> (ø)

Flags with carried forward coverage won't be shown.Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

@jongpie
Copy link
OwnerAuthor

@anuragoyar it looks like you've copied/pasted some AI-generated reviews of this PR.... any particular reason that you're adding these as comments?

@anengineerdude
Copy link

@anuragoyar #badbot

jongpie and jamessimone reacted with laugh emoji

@jongpie
Copy link
OwnerAuthor

jongpie commentedMay 21, 2025
edited
Loading

I... wasn't expecting 4 more AI-generated comments in response tomy question 😅@anuragoyar I'm not sure what's going on with your comments (presumably, you've setup some automated bot that's gone rogue?), but I'm blocking you for now to stop the comments, and I'm hiding/deleting several of your comments as they're just adding noise to this PR.

For future reference, here's a giant screenshot of the comments that were added (and then removed).

image

jamessimone reacted with heart emoji

@jamessimone
Copy link
Collaborator

What a mess

jongpie reacted with laugh emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Feature: OpenTelemetry SupportItems to related to supporting OpenTelemetry (OTel) and its standards for observability dataLayer: Log ManagementItems related to the custom objects & Logger Console appLayer: Logger EngineItems related to the core logging engineLogging Source: APIItems related to using Nebula Logger via REST APIType: EnhancementNew feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an Apex RestResource class to provide logging capabilities to external inbound integrations
4 participants
@jongpie@anengineerdude@jamessimone@actions-user

[8]ページ先頭

©2009-2025 Movatter.jp