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

ウェブフックの recording_metadata の送信可否を設定できるようにする #51

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

tnamao
Copy link
Collaborator

@tnamao tnamao commented Oct 30, 2024

変更履歴

  • [UPDATE] 設定に exclude_webhook_recording_metadata を追加し、report ファイルアップロード後のウェブフックに recording_metadata を含めるかどうか設定できるようにする
    • デフォルトは falserecording_metadata を送信するウェブフックに含める
    • true を設定するとレポートファイルに recording_metadata または metadata が含まれていてもウェブフックには含めない
    • @tnamao

This pull request introduces a new configuration option to control the inclusion of recording_metadata in webhook payloads after a report file upload. The key changes involve adding this configuration to relevant files and updating the logic to respect the new setting.

Configuration Updates:

  • config.go: Added ExcludeWebhookRecordingMetadata to the Config struct to allow users to configure the exclusion of recording_metadata in webhook payloads.
  • config_example.ini: Provided an example configuration entry for exclude_webhook_recording_metadata to guide users on how to set this option.

Logic Updates:

  • uploader.go: Updated the handleReport function to check the new ExcludeWebhookRecordingMetadata setting and conditionally include recording_metadata in the webhook payload.

Documentation:

  • CHANGES.md: Documented the new exclude_webhook_recording_metadata configuration option, explaining its default behavior and how to configure it.

@tnamao tnamao requested review from Hexa and voluntas October 30, 2024 07:13
@@ -56,6 +56,8 @@ type Config struct {
WebhookTypeSplitArchiveEndUploaded string `ini:"webhook_type_split_archive_end_uploaded"`
WebhookTypeReportUploaded string `ini:"webhook_type_report_uploaded"`

ExcludeWebhookRecordingMetadata bool `ini:"exclude_webhook_recording_metadata"`
Copy link
Member

Choose a reason for hiding this comment

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

💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants