%% Copyright (c) 2017-Present Pivotal Software, Inc. All rights reserved. %% %% This package, Looking Glass, is double-licensed under the Mozilla %% Public License 1.1 ("MPL") and the Apache License version 2 %% ("ASL"). For the MPL, please see LICENSE-MPL-RabbitMQ. For the ASL, %% please see LICENSE-APACHE2. %% %% This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, %% either express or implied. See the LICENSE file for specific language governing %% rights and limitations of this software. %% %% If you have any questions regarding licensing, please contact us at %% info@rabbitmq.com. %% The purpose of this process is to be the target of messages %% sent by traced processes. The messages contain metadata that %% we want to log when we are tracing and later use when profiling %% the sending of messages. This process does not need them, it %% just needs to exist, and therefore it discards everything. -module(tpRabbitHole). -behaviour(gen_server). %% API. -export([start_link/0]). %% gen_server. -export([init/1]). -export([handle_call/3]). -export([handle_cast/2]). -export([handle_info/2]). -export([terminate/2]). -export([code_change/3]). %% API. -spec start_link() -> {ok, pid()}. start_link() -> gen_server:start_link({local, lg}, ?MODULE, [], []). %% gen_server. init([]) -> {ok, undefined}. handle_call(_Request, _From, State) -> {reply, ignored, State}. handle_cast(_Msg, State) -> {noreply, State}. handle_info(_Info, State) -> {noreply, State}. terminate(_Reason, _State) -> ok. code_change(_OldVsn, State, _Extra) -> {ok, State}.