Coder Social home page Coder Social logo

am.elasticsearch.tracelistener's People

Contributors

jeoffman avatar mend-bolt-for-github[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bstauff gsellitto

am.elasticsearch.tracelistener's Issues

Handle serializing objects that can throw during serialization

using TraceData on some EntityFramework exceptions cause the ES TraceListener serializer to throw.

The original exception was a DbEntityValidationException, which caused the TraceData to throw a JsonSerializationException due to a "Self referencing loop".

Another Entity Framework Error was: "OriginalValues cannot be used for entities in the Added state" appeared to be trying to serialize properties of the EF entities which seem to be throwing during the property's "get".

Under both cases our ILogger was catching the exception thrown by Elasticsearch.TraceListener but the messages were not very useful.

I will have a pull request ready in just a minute

[feature request] Override for "AppDomainFriendlyName"

We are using this in an IIS Web App and a Windows Service. The AppDomainFriendlyName for the Windows Service looks great, but the one for the Web App looks like:
/LM/W3SVC/1039/ROOT-1-131631189689932306

It would be nice if the AppDomainFriendlyName was the name of the web app, or if I could override it with my own custom (useful) text.

WCF Service.Model issue

[Field name [{http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord}TraceRecord] cannot contain '.']

Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: [2017-01-24 12:02:02,278][DEBUG][action.admin.indices.mapping.put] [Ningal] failed to put mappings on indices [[trace-2017-01-24-18]], type [Trace] Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: MapperParsingException[Field name [{http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord}TraceRecord] cannot contain '.'] Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:277)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:222)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parse(ObjectMapper.java:197)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:309)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.index.mapper.object.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:222)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.index.mapper.object.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:139)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:118)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:99)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:549)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.cluster.metadata.MetaDataMappingService$PutMappingExecutor.applyRequest(MetaDataMappingService.java:257)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.cluster.metadata.MetaDataMappingService$PutMappingExecutor.execute(MetaDataMappingService.java:230)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:468)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
Jan 24 12:02:02 SmellyCat01 elasticsearch[576]: at java.lang.Thread.run(Thread.java:745)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.