Skip to content

Instantly share code, notes, and snippets.

pipelines:
default:
- step:
name: deploy to dev
script:
# We are now actually deploying our dev branch to prod!!
- export AWS_ACCESS_KEY_ID="$PROD_AWS_ACCESS_KEY_ID"
- export AWS_SECRET_ACCESS_KEY="$PROD_AWS_ACCESS_KEY_SECRET"
- aws s3 sync --delete _site s3://$PROD_S3_BUCKET
pipelines:
default:
- step:
name: deploy to dev
script:
- export AWS_ACCESS_KEY_ID="$DEV_AWS_ACCESS_KEY_ID"
- export AWS_SECRET_ACCESS_KEY="$DEV_AWS_ACCESS_KEY_SECRET"
- aws s3 sync --delete _site s3://$DEV_S3_BUCKET
branches:
<!-- VERSION is the version of the agent you wish to use -->
<dependency>
<groupId>com.dripstat</groupId>
<artifactId>apm-agent</artifactId>
<version>VERSION</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
<!-- VERSION is the version of the agent you wish to use -->
<dependency>
<groupId>com.dripstat</groupId>
<artifactId>apm-agent</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>
@pdeva
pdeva / build.gradle
Last active June 26, 2018 22:23
DripStat APM Agent in Gradle
dependencies {
// $agentVersion is the version of the agent you wish to download
compileOnly('com.dripstat:apm-agent:$agentVersion') {
transitive = false
}
}
public String callWebService(String fromAccount, String toAccount, double amount, String currency)
throws MalformedURLException, Exception{
//create a metadata of the service
Service serviceModel = new ObjectServiceFactory().create(IBankingService.class);
System.out.println("callSoapServiceLocal(): got service model." );
//create a proxy for the deployed service
XFire xfire = XFireFactory.newInstance().getXFire();
XFireProxyFactory factory = new XFireProxyFactory(xfire);
{
"meterVersion":"3.1.3-575",
"hostname":"dc3",
"mach":"x86_64",
"osver":"#39-Ubuntu SMP Mon Dec 15 22:27:29 UTC 2014",
"machdesc":"Ubuntu 14.10",
"osname":"Linux",
"arch":"x86_64",
"version":"3.16.0-29-generic",
"vendname":"Linux",
package com.chronon.apm.utils;
import com.chronon.apm.Log;
import com.google.common.collect.Iterables;
import java.net.*;
import java.util.Collections;
import java.util.List;
public class Hostname
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor518.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:781)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:721)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:
2015-01-05 23:24:20 XRebel: Class 'com.mongodb.QueryResultIterator' could not be processed by com.zeroturnaround.xrebel.do@null
2015-01-05 23:24:20 XRebel: ERROR com.zeroturnaround.xrebel.bundled.javassist.CannotCompileException: [source error] no such field: $4
at com.zeroturnaround.xrebel.bundled.javassist.CtBehavior.insertAfter(XRebel:877)
at com.zeroturnaround.xrebel.bundled.javassist.CtBehavior.insertAfter(XRebel:792)
at com.zeroturnaround.xrebel.do.process(XRebel:34)
at com.zeroturnaround.xrebel.sdk.trans.JavassistClassBytecodeProcessor.process(XRebel:36)
at com.zeroturnaround.xrebel.bootstrap.e.a(XRebel:32)
at com.zeroturnaround.xrebel.bootstrap.k.transform(XRebel:20)
at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)