Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8953555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:07:21+00:00 2026-06-15T14:07:21+00:00

I would like to have the whole stacktrace in Google Analytic’s report’s for my

  • 0

I would like to have the whole stacktrace in Google Analytic’s report’s for my mobile application.

I wrote class that print’s the stacktrace and put’s it into string, but it doesn’t work.

My custom ExceptionParser:

@Override
public String getDescription(String threadName, Throwable throwable) {
    return threadName + " " + getStackTrace(throwable);
}

private String getStackTrace(Throwable throwable) {
    final Writer result = new StringWriter();
    final PrintWriter printWriter = new PrintWriter(result);
    throwable.printStackTrace(printWriter);

    return result.toString();
}

And I set it like this:

EasyTracker.getTracker().setExceptionParser(new StacktraceExceptionParser());
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:07:23+00:00Added an answer on June 15, 2026 at 2:07 pm

    The method below combines the entire stack trace into a single comma separated line, which may help in case Analytics returns just the first line. But there still may be a length limit so it may be prudent to do filtering to eliminate items you do not need (see comment)

     public String getCombinedStackTrace(Throwable aThrowable) {
    
        final StringBuilder result = new StringBuilder();
        result.append(aThrowable.toString());
        result.append(',');
    
        String oneElement;
    
        for (StackTraceElement element : aThrowable.getStackTrace() ) {
            // you can do some filtering here, selecting only the elements you need
            oneElement = element.toString();
            result.append( oneElement );
            result.append( ",");
        }
        return result.toString();
    }
    

    I second Nikolay’s comment about using an error reporting library. I found it to be tremendously helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a whole catalogue of videos which we would like to stream to
I have the following <li> and I would like the whole li to behave
I have a splash screen that I would like to fade in, while my
So in my project i would like have a nice treeview that has images.
I would like to have an AppWidget that designed like this one . Image:
I have a case here that I would like to have some opinions from
I have a whole bunch of data.frames with irregular time spacing. I would like
I would like to have a FLEX SWF Menu in .NET that is animated,
In SQL Server Reporting Services I would like to have an option to print
I would like to have a spark datagrid that wordwraps all rows where relevant.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.