Skip to content

Instantly share code, notes, and snippets.

FROM ubuntu
MAINTAINER Adam Hert
RUN apt-get update && apt-get install -y apache2 && \
apt-get install -y wget && \
wget https://files.appneta.com/install_appneta.sh && \
sh ./install_appneta.sh <site-key> && \
apt-get install -y libapache2-mod-oboe && \
/etc/init.d/apache2 restart && \
apt-get install -y supervisor
FROM jeanblanchard/java:8
MAINTAINER Jean Blanchard <[email protected]>
# Expose web port
EXPOSE 8080
# Tomcat Version
ENV TOMCAT_VERSION_MAJOR 8
ENV TOMCAT_VERSION_FULL 8.5.8
FROM ubuntu
MAINTAINER Adam Hert
RUN apt-get update && sudo apt-get install -y nodejs && \
apt-get install -y nodejs-legacy && \
apt-get install -y wget && \
wget https://files.appneta.com/install_appneta.sh && \
sh ./install_appneta.sh <site key> && \
mkdir /var/node && \
apt-get install -y npm && \
/**
* The HelloTrace class is an example of how to instrument a non-servlet java application
* simply traces "Hello World!" to standard output.
*/
//import the tracelytics-api.jar (/usr/local/tracelytics/tracelytics-api.jar)
import com.tracelytics.api.ext.*;
class HelloTrace {
public static void main(String[] args) {
//Start a trace (In a servlet, we do this automatically at the start of the request)
var tv = require('traceview');
tv.traceMode = 'always';
// Load the http module to create an http server.
var http = require('http');
// Configure HTTP server to respond with Hello World to all requests.
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello World\n");
});
@adam-hert
adam-hert / Default.aspx.cs
Created September 27, 2016 18:25
Custom traceview instrumentation in aspx
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AppNeta.Instrumentation;
public partial class _Default : Page
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AppNeta.Instrumentation;
public partial class _Default : Page
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
//import the tracelytics-api.jar (/usr/local/tracelytics/tracelytics-api.jar)
import com.tracelytics.api.ext.*;
public class process extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {

content

"""
WSGI config for dt project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dt.settings")