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

Attachments in sentry subsystem ConfigureScope fail to upload #191

Open
adamboerema opened this issue Jan 13, 2023 · 3 comments
Open

Attachments in sentry subsystem ConfigureScope fail to upload #191

adamboerema opened this issue Jan 13, 2023 · 3 comments

Comments

@adamboerema
Copy link

Environment

How do you use Sentry?
Sentry SaaS

Which version of the SDK?
0.2.0

How did you install the package? (Git-URL, Assetstore)
Manually included Sentry Unreal Plugin in project

Which version of Unreal?
4.27.2

Is this happening in Unreal (editor) or on a player like Android, iOS, Windows?
Android

Steps to Reproduce

Configured custom attachments on the ConfigureScope callback in the GameInstance Init method. Local logs show the file being found and attached but on Sentry the log is not included in the crash event attachments. However, manually calling ConfigureEventWithScope or ConfigureMessageWithScope properly includes the attachment with the same delegate.

I've also tried this in blueprints using your documentation with no success either.

Expected Result

I would expect to see the attachment included in the crash event.

Actual Result

No attachment is included in the crash event.

Code sample:

void UCustomLoggingManager::ConfigureScope()
{
	FConfigureScopeDelegate Delegate;
	Delegate.BindDynamic(this, &UCustomLoggingManager::HandleScope);
	SentrySubsystem->ConfigureScope(Delegate);
}

void UCustomLoggingManager::HandleScope(USentryScope* Scope)
{
	if(!Scope) return;

	const FString FilePath = FPaths::Combine(FPaths::ProjectLogDir(), TEXT("client.log"));
	const FString SentryFileName(TEXT("client.log"));
	
	USentryAttachment* PathAttachment = NewObject<USentryAttachment>();
	PathAttachment->InitializeWithPath(FilePath, SentryFileName);
	Scope->AddAttachment(PathAttachment);
}
@adamboerema adamboerema added Bug Something isn't working Platform: Unreal labels Jan 13, 2023
@bitsandfoxes
Copy link
Contributor

Thanks for reporting this. I'll try to reproduce this locally.

@bitsandfoxes
Copy link
Contributor

Unfortunately, I don't know how to phrase this in a more favorable light but currently, this is a known limitation of the native SDK.
I'll change this from a bug to a feature request.

@bitsandfoxes bitsandfoxes added Feature Request and removed Bug Something isn't working labels Feb 24, 2023
@bitsandfoxes bitsandfoxes added this to GDX Mar 4, 2024
@bruno-garcia
Copy link
Member

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

No branches or pull requests

3 participants